TIFF 文件结构标准

发布于 2024-08-04 00:55:09 字数 269 浏览 4 评论 0原文

我已阅读 Adob​​e 提供的 TIFF 文件规范,但找不到与以下内容相关的任何标准:

  1. 如果将 IFD 紧跟在它们描述的图像数据之后/紧邻在它们描述的图像数据之前放置会更好/更容易被接受/全部放在顶部,下面是图像数据/等等。

  2. 每个条带中有多少行。一般有好的数字吗?如果它是多平面图像,是否可以让每个条带仅包含该特定图像平面中的所有行?

我之所以问这个问题是因为我正在编写一些 Java 程序来制作 TIFF 文件。

I've read the TIFF file specification provided by Adobe, but I couldn't find any standards related to:

  1. If it's better/more accepted to put IFDs immediately following the image data they describe/immediately preceding the image data they describe/all together at the top with image data below/etc.

  2. How many rows to put in each strip. Is there generally a good number? If it's a multi-plane image, would it be okay to make each strip just hold all the rows in that particular image plane?

The reason I ask is because I'm programming some Java to make a TIFF file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猫腻 2024-08-11 00:55:09

我认为只要遵循规范,将 IFD 放在哪里并不重要(因为 TIFF 读取器/写入器应该使用规范来查找它们)。

当我编写一些 TIFF 文件时,我做了:

  1. TIFF 文件头
  2. 第一页的标签
  3. 第一页的
  4. 图像 第二
  5. 页的标签
  6. 等等。

I think it doesn't matter where you put the IFDs provided you follow the spec (because a TIFF reader/writer should be using the spec to find them).

When I wrote some TIFF files, I did:

  1. TIFF file header
  2. Tags for first page
  3. Image for first page
  4. Tags for second page
  5. Image for second page
  6. Etc.
旧时模样 2024-08-11 00:55:09

您是否考虑过从各种网站上找到一堆 TIFF 图像,然后使用您正在编写的 TIFF 反编译器解析这些图像以验证您正在生成的内容? (或者使用其他 TIFF 反编译器?)这会给您一些指导吗?如果他们的行为完全不同,你就知道这并不重要。如果他们是一致的,你知道你也应该与他们保持一致。

Have you considered finding a bunch of TIFF images off the web from a variety of sites, and then parsing those with the TIFF decompiler you are writing to validate what you are producing? (Or with some other TIFF decompiler?) Would that give you some guidance? If their behaviour is all over the map, you know that it is not critical. If they are consistent, you know you should be consistent with them too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文