微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

TIFF文件的ImageMagick识别失败

如何解决TIFF文件的ImageMagick识别失败

我正在使用ImageMagick的“ identify”方法获取图像大小。我使用以下格式的命令:

"identify.exe" -format "%wx%h" "[IMAGE_FILE_PATH]"

我无法获得几张图像的分辨率。想知道这可能是图像问题吗?还是命令中缺少什么?

图片1错误

identify.exe: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchnormalTag' @ warning/tiff.c/TIFFWarnings/1029.

图片2错误

ERROR :identify.exe: UnkNown field with tag 34016 (0x84e0) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34017 (0x84e1) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34018 (0x84e2) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34019 (0x84e3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34020 (0x84e4) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34021 (0x84e5) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34022 (0x84e6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34023 (0x84e7) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34024 (0x84e8) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34025 (0x84e9) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34026 (0x84ea) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34027 (0x84eb) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34028 (0x84ec) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34029 (0x84ed) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: UnkNown field with tag 34030 (0x84ee) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/1029.
identify.exe: C:\.FieryJobFlow/5378/JF1130329232719937_.tif: Null count for "Tag 34022" (type 1,writecount -3,passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/665.
identify.exe: C:\.FieryJobFlow/5378/JF1130329232719937_.tif: Null count for "Tag 34025" (type 1,passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/665.
identify.exe: C:\.FieryJobFlow/5378/JF1130329232719937_.tif: Null count for "Tag 34026" (type 1,passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/665.

ImageMagick版本:

Version: ImageMagick 7.0.9-14 Q16 x86 2020-01-05 http://www.imagemagick.org
copyright: copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.PHP
Visual C++: 180040629
Features: Cipher DPC HDRI OpenCL
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib

我注意到的另一件事是,ImageMagick的convert.exe对于Image1可以正常处理,而对于Image2则不能。

有什么办法知道图像是否有问题吗?

谢谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。