Convert (version 6.8.6-5) losing ICC

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
sqlgodus
Posts: 2
Joined: 2013-07-15T10:51:04-07:00
Authentication code: 6789

Convert (version 6.8.6-5) losing ICC

Post by sqlgodus »

I am converting TIFFs to JPEGs. The TIFFs have an embedded color profile: Adobe RGB
I am using ImageMagick 6.8.6-5 and have tried both the 64bit and 32-bit versions for Windows.

Upon convert, the ICC is dropped from the resulting JPEG. I cannot sort out how to add it back in. I have tried the following:

convert test.tif test.jpg
convert test.tif -profile AdobeRGB1998.icc test.jpg
convert test.tif -profile AdobeRGB1998.icc -profile AdobeRGB1998.icc test.jpg

If I convert between TIFFs, the color profile is retained. If I convert between TIFF and PNG, the color profile is retained.

Is this a bug or am I just not running the command properly?

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

Re: Convert (version 6.8.6-5) losing ICC

Post by fmw42 »

sqlgodus
Posts: 2
Joined: 2013-07-15T10:51:04-07:00
Authentication code: 6789

Re: Convert (version 6.8.6-5) losing ICC

Post by sqlgodus »

Thanks for the reference. At the bottom of that thread it says:

"Try 6.8.6-3. That should handle the ICC profile properly."

I am using 6.8.6-5. I will try down-grading to 6.8.6-3 to see if it was fixed and has now reappeared.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert (version 6.8.6-5) losing ICC

Post by fmw42 »

sqlgodus wrote:Thanks for the reference. At the bottom of that thread it says:

"Try 6.8.6-3. That should handle the ICC profile properly."

I am using 6.8.6-5. I will try down-grading to 6.8.6-3 to see if it was fixed and has now reappeared.
If it was fixed in 6.8.6.3 it should be still fixed in 6.8.6.5.

What are the exact conditions that it fails? Can you provide an example image and the exact command you used to make it fail. We can test that in 6.8.6.5.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert (version 6.8.6-5) losing ICC

Post by snibgo »

v6.8.6-5 on Windows 7 doesn't seem to embed profiles in jpegs.

Code: Select all

>set I=%IMG6865%

>%I%convert -version
Version: ImageMagick 6.8.6-4 2013-07-08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fftw fontconfig freetype jng jp2 jpeg lcms lzma openexr pa
ngo png ps tiff x xml zlib

>%I%convert xc: -profile AdobeRGB1998.icc j.png
>%I%convert xc: -profile AdobeRGB1998.icc j.tif
>%I%convert xc: -profile AdobeRGB1998.icc j.jpg

>%I%identify -verbose j.png |cgrep /i- /sprofile /g
Search for {*profile*}
Searched 75 records in 1 file.
  Output 2 records from 1 file.

  Profiles:
    Profile-icc: 560 bytes

>%I%identify -verbose j.tif |cgrep /i- /sprofile /g
Search for {*profile*}
Searched 66 records in 1 file.
  Output 2 records from 1 file.

  Profiles:
    Profile-icc: 560 bytes

>%I%identify -verbose j.jpg |cgrep /i- /sprofile /g
Search for {*profile*}
Searched 316 records in 1 file.
  Output 0 records from 0 files.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert (version 6.8.6-5) losing ICC

Post by fmw42 »

I can confirm that also on Mac OSX

convert zelda3.jpg -profile /Users/fred/images/profiles/sRGB.icc zelda3p.jpg

result shows no Profiles associated with the output
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert (version 6.8.6-5) losing ICC

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.6-6 Beta available by sometime tomorrow. Thanks.
Post Reply