ImageMagick: Color problems converting TIFF

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

ImageMagick: Color problems converting TIFF

Post by hknight »

Source Image: https://zuhqtr5.couchappy.com/test/im/image.tif

Code: Select all

convert image.tif -thumbnail 150x250 image.jpg 
The resulting image should look like this:
Image
But it incorrectly returns this:
Image

Here is the source image: https://zuhqtr5.couchappy.com/test/im/image.tif
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: ImageMagick: Color problems converting TIFF

Post by snibgo »

Your links need username and password. Please put them somewhere that doesn't need username and password.

It might also help is you say what version of IM and platform you are using.
snibgo's IM pages: im.snibgo.com
hknight
Posts: 32
Joined: 2007-08-02T10:16:15-07:00

Re: ImageMagick: Color problems converting TIFF

Post by hknight »

Thank you for pointing out the permissions issue. The images are now accessible.

I use ImageMagick-6.8.7-8-Q16-x64-dll.exe (Win64 dynamic at 16 bits-per-pixel)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick: Color problems converting TIFF

Post by fmw42 »

Your tif is CMYK and many browsers do not display CMYK jpeg properly. So convert the tiff to sRGB using profiles and that works for me in IM 6.8.7.8 Q16 Mac OSX

convert image.tif -profile /Users/fred/images/Profiles/USWebCoatedSWOP.icc -profile /Users/fred/images/Profiles/sRGB.icc -thumbnail 150x250 image.jpg
hknight
Posts: 32
Joined: 2007-08-02T10:16:15-07:00

Re: ImageMagick: Color problems converting TIFF

Post by hknight »

Code: Select all

convert image.tif -profile /Users/fred/images/Profiles/USWebCoatedSWOP.icc -profile /Users/fred/images/Profiles/sRGB.icc -thumbnail 150x250 image.jpg
Returns this error:

Code: Select all

convert image.tif -profile /Users/fred/images/Profiles/USWebCoatedSWOP.icc -profile /Users/fred/images/Profiles/sRGB.icc -thumbnail 150x250 image.jpg
convert: unable to open image `/Users/fred/images/Profiles/USWebCoatedSWOP.icc': No such file or directory @ error/blob.c/OpenBlob/2617.
convert: unable to open file `/Users/fred/images/Profiles/USWebCoatedSWOP.icc': No such file or directory @ error/blob.c/FileToBlob/940.
convert: unable to open image `/Users/fred/images/Profiles/sRGB.icc': No such file or directory @ error/blob.c/OpenBlob/2617.
convert: unable to open file `/Users/fred/images/Profiles/sRGB.icc': No such file or directory @ error/blob.c/FileToBlob/940.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick: Color problems converting TIFF

Post by fmw42 »

You have to use your own path to your profiles, not mine. Find or download icc or icm profiles of the same names to your system and put the full path to them in your command.

see
http://www.color.org/srgbprofiles.xalter
https://github.com/nicolasfranck/Grim/b ... edSWOP.icc
http://www.adobe.com/support/downloads/ ... ftpID=4075
http://www.mattbeals.com/icc/
Post Reply