Page 1 of 1

JPEG and TIFF Image Convert Differently

Posted: 2013-09-20T11:33:57-07:00
by hknight
I have two identical images, saved in different formats:
JPEG Image: (Click to download)
TIFF Image: (Click to download)

Code: Select all

convert  smile.jpg -resize "250x250>" -alpha set -background '#ffccff'  -vignette 0x4  j.jpg
convert  smile.tif -resize "250x250>" -alpha set -background '#ffccff'  -vignette 0x4  t.jpg
The result that has the JPEG as the source looks correct:
Image
The result that has the TIFF as the source is NOT correct:
Image

I used ImageMagick 6.8.0-7.

How can I get the TIFF image to be convert properly?

Re: JPEG and TIFF Image Convert Differently

Posted: 2013-09-20T11:56:07-07:00
by snibgo
smile.jpg is sRGB but smile.tif is CMYK.

For the cmyk file, I suggest you convert it to sRGB first:

Code: Select all

convert  smile.tif -colorspace sRGB -resize "250x250>" -alpha set -background '#ffccff'  -vignette 0x4  t.jpg