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 (将#修改为@)