TIFF 元数据的最大大小是多少? [英] What is the maximum size of TIFF metadata?

查看:64
本文介绍了TIFF 元数据的最大大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于可以合并到 TIFF 文件元数据的单个字段中的元数据量是否有最大限制?我想在 ImageDescription 字段中存储一个大文本(最多几 MB).

Is there a maximum limit to the amount of metadata that can be incorporated in an individual field of TIFF file metadata? I'd like to store a large text (up to a few MB) in the ImageDescription field.

推荐答案

ImageDescription 字段没有具体的最大限制,但是,对于整个 TIFF 文件有一个最大文件大小.此最大大小为 4 GB.来自 TIFF 6.0 规范:

There's no specific maximum limit to the ImageDescription field, however, there's a maximum file size for the entire TIFF file. This maximum size is 4 GB. From the TIFF 6.0 spec:

可能的最大 TIFF 文件长度为 2**32 字节.

The largest possible TIFF file is 2**32 bytes in length.

这是由于文件结构中的偏移量,存储为无符号 32 位整数.

This is due to the offsets in the file structure, stored as unsigned 32 bit integers.

因此,理论上的最大大小是@cgohlke 在评论中指出的大小(2^32 减去偏移量"),但很可能您希望保持更小,如果您也打算包括像素数据...

Thus, the theoretical maximum size is that which @cgohlke points out in the comments ("2^32 minus the offset"), but most likely you want to keep it smaller, if you also intend to include pixel data...

存储几MB"应该不是问题.

这篇关于TIFF 元数据的最大大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆