I have a TIFF image with multiple layers. I want to convert the image to JPG and thus flatten the layers. But with the version in use, I get a bad result. With another IM version the result is good. These are the details:
OS: macOS 10.12
IM Version (productive – bad result): ImageMagick 7.0.7-22 Q16 x86_64 2018-01-13 http://www.imagemagick.org
^- This is the binary release from here: https://www.imagemagick.org/script/download.php
IM Version (comparison – good result): Version: ImageMagick 6.9.9-40 Q16 x86_64 2018-05-29 http://www.imagemagick.org
^- This is a installation from the MacPorts distribution
Command:
Code: Select all
convert img.tif -density 72 -quality 100 -flatten -profile sRGB_v4_ICC_preference.icc img_bad.jpg
Code: Select all
convert: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/912.
convert: Incompatible type for "FileSource"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/912.
convert: Incompatible type for "SceneType"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/912.
convert: Wrong data type 3 for "GainControl"; tag ignored. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/912.
convert: Unknown field with tag 42033 (0xa431) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/912.
convert: Unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/912.
convert: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/912.
convert: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/912.
Good converted image (version 6.9.9): https://www.dropbox.com/s/wg3huzr6sbnem ... d.jpg?dl=0
Original image: https://www.dropbox.com/s/lec6hcoi97e5byz/img.tif?dl=0
Color profile: https://www.dropbox.com/s/i5qbsaczu9lpx ... e.icc?dl=0
I realize that much changed between 6 & 7, but I just can't figure out what I should change to get the result I want.