我有一个大文件(6GB),它使用libtiff 4.0.3显示以下信息:
> tiffinfo MyPic
MyPic: Warning, Nonstandard tile length 1, convert file.
TIFFReadDirectory: Warning, Unknown field with tag 65100 (0xfe4c) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65102 (0xfe4e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65103 (0xfe4f) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65109 (0xfe55) encountered.
TIFF Directory at offset 0x1816881c8 (6466077128)
Subfile Type: (0 = 0x0)
Image Width: 20064 Image Length: 306083
Tile Width: 912 Tile Length: 1
Resolution: 1, 1 (unitless)
Bits/Sample: 16
Sample Format: unsigned integer
Compression Scheme: 65100 (0xfe4c)
Photometric Interpretation: min-is-black
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Planar Configuration: single image plane
Make: ##############
DateTime: 2013:08:09 08:12:45
CameraSerialNumber: ###############
Tag 65100: 1094996812
Tag 65102: 3
Tag 65103: 4
Tag 65109: 1441792
如您所见,我正在检查的文件包含特定标记(0xfe4c,0xfe4e,0xfe4f,0xfe55)和压缩方案(0xfe4c),这些标记是“不寻常的”。
在检查了一些网站后,我发现EXIF元数据标签0xfe4c,0xfe4e,0xfe4f,0xfe55是Adobe Photoshop的Camera Raw插件标签[source]。
现在,假设压缩方案0xfe4c与Adobe程序有关,可能太秃了,但是,如果是这样的话,我用“Adobe”标记它。
我无法提供图像(因为它本身由外部公司提供,重量为6 GB),但可以在其上运行libtiff命令。问题是libtiff 4.0.3不支持压缩方案0xfe4c:
> ./tiff2pdf -o /tmp/output.pdf MyPic
MyPic: Warning, Nonstandard tile length 1, convert file.
TIFFReadDirectory: Warning, Unknown field with tag 65100 (0xfe4c) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65102 (0xfe4e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65103 (0xfe4f) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65109 (0xfe55) encountered.
MyPic: Warning, Nonstandard tile length 1, convert file.
TIFFReadDirectory: Warning, Unknown field with tag 65100 (0xfe4c) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65102 (0xfe4e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65103 (0xfe4f) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65109 (0xfe55) encountered.
MyPic: Warning, Nonstandard tile length 1, convert file.
TIFFReadDirectory: Warning, Unknown field with tag 65100 (0xfe4c) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65102 (0xfe4e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65103 (0xfe4f) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65109 (0xfe55) encountered.
MyPic: Warning, Nonstandard tile length 1, convert file.
TIFFReadDirectory: Warning, Unknown field with tag 65100 (0xfe4c) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65102 (0xfe4e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65103 (0xfe4f) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 65109 (0xfe55) encountered.
tiff2pdf: No support for MyPic with compression type 65100: not configured.
tiff2pdf: An error occurred creating output PDF file.
有没有人遇到过这种压缩方案? 我不知道它是否是一种新的压缩算法(在这种情况下,我要么必须对代码进行反向工程,要么要求?Adobe?寻求支持),或者它是否是现有算法的新密钥(在在哪种情况下,更新我的lib会非常简单。)
谢谢, 帕斯卡