0

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

"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, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/665.
identify.exe: C:\.FieryJobFlow/5378/JF1130329232719937_.tif: Null count for "Tag 34026" (type 1, writecount -3, 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 却没有。

有什么方法可以知道图像是否有问题?

谢谢。

4

0 回答 0