problems converting tiff files

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
gursch
Posts: 20
Joined: 2010-05-25T02:41:06-07:00
Authentication code: 8675308

problems converting tiff files

Post by gursch »

I have problems converting tiff files to jpeg or any other format. The tiffs have transparency and after converting the images show strange colours. I used the convert command: convert tiff-test.tif out.jpg

Here is a sample file:
https://www.dropbox.com/s/r0szsducaj9zd6t/tiff-test.tif

Can you have a look at it?

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

Re: problems converting tiff files

Post by fmw42 »

Works fine for me, but gives a warning only about one of the meta fields. The JPG does get created. Though it has some strange colors.


convert tiff-test.tif tiff-test.jpg
convert: tiff-test.tif: wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/824.


However, jpg does not support transparency. So it will be lost. If you want the same look then flatten it first

convert tiff-test.tif -background "gray(50%)" -flatten tiff-test2.jpg

You may have to adjust the 50% to something else to get a good match.
Post Reply