JPEG and TIFF Image Convert Differently

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hknight
Posts: 32
Joined: 2007-08-02T10:16:15-07:00

JPEG and TIFF Image Convert Differently

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: JPEG and TIFF Image Convert Differently

Post 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
snibgo's IM pages: im.snibgo.com
Post Reply