Flatten layers – bad results (TIFF->JPG)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
bandw4
Posts: 1
Joined: 2018-06-21T00:27:48-07:00
Authentication code: 1152

Flatten layers – bad results (TIFF->JPG)

Post by bandw4 » 2018-06-21T00:55:42-07:00

Hello,

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
Warnings (both versions):

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.
Bad converted image (version 7.0.7): https://www.dropbox.com/s/gdyen158gm44d ... d.jpg?dl=0
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.

User avatar
fmw42
Posts: 23658
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Flatten layers – bad results (TIFF->JPG)

Post by fmw42 » 2018-06-21T08:58:33-07:00

I can verify on Mac OSX Sierra that it works fine in IM 6.9.10.1 Q16, but fails on IM 7.0.8.1 Q16 HDRI.

Post Reply