Rendering TIFF with wrong headers with magick.exe and convert.exe #8136
-
ImageMagick version7.1.0-52 Q8 Operating system, version and so onWindows 11 DescriptionHi, I am porting from convert.exe to magick.exe prior to upgrading from 7.1.0-52 Q8 to latest. One file has me stumped. I know the file has wrong headers, but, unfortunately, I still need to handle this "type" of broken. PS im7-testing $ & "C:\Program Files\ImageMagick-7.1.0-Q8\identify.exe" .\TiffEmptyDirectoryError.tif
.\TiffEmptyDirectoryError.tif TIFF 512x384 512x384+0+0 8-bit sRGB 4302B 0.016u 0:00.007
identify.exe: Incorrect value for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/950.
identify.exe: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each). `.\TiffEmptyDirectoryError.tif' @ error/tiff.c/TIFFErrors/597.
identify.exe: Failed to read custom directory at offset 3184. `TIFFReadCustomDirectory' @ error/tiff.c/TIFFErrors/597.
identify.exe: Incorrect value for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/950.(As a side: this is actually a known issue in OpenImageIO that was fixed years ago.) For converting this to another format, executing either PS im7-testing $ & "C:\Program Files\ImageMagick-7.1.0-Q8\magick.exe" ".\TiffEmptyDirectoryError.tif[0]" -auto-orient -density 72 -units PixelsPerInch -thumbnail 154x154> -profile ".\IccProfiles\sRGB-IEC61966-2.1.icc" -flatten -quiet .\TiffEmptyDirectoryError.tif.png
magick.exe: Incorrect value for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/950.
magick.exe: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each). `.\TiffEmptyDirectoryError.tif' @ error/tiff.c/TIFFErrors/597.
magick.exe: Failed to read custom directory at offset 3184. `TIFFReadCustomDirectory' @ error/tiff.c/TIFFErrors/597.
magick.exe: Incorrect value for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/950.Is error handling different between Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I don't have a version of IM (v6 or v7) that can read your
Gimp can read it. So I suggest using that, or some other program, to save it in a valid file. |
Beta Was this translation helpful? Give feedback.
I don't have a version of IM (v6 or v7) that can read your
TiffEmptyDirectoryError.tiffile.tiffinfoalso complains:Gimp can read it. So I suggest using that, or some other program, to save it in a valid file.