Page 1 of 1

Issue assigning ICC profiles to some images.

Posted: 2010-03-03T17:11:23-07:00
by jyelloz
I'm using version 6.5.9-3 on mac os x.
Anyway, assigning profiles to images does work properly but there is a space issue.

If I assign the standard sRGB profile (3144 bytes) to a JPEG image, this is what happens:

Code: Select all

convert -size 512x512 -colorspace RGB -intent Relative -profile sRGB.icm xc:red blah.jpg
identify -verbose blah.jpg
...
  Profiles:
    Profile-icc: 131084 bytes
      IEC 61966-2.1 Default RGB colour space - sRGB
...
A 3k profile is taking up about 128k of space (there's a bunch of zeroes in the output JPEG).

If I do the same thing with a PNG output, I get an imagemagick warning when running the command

Code: Select all

convert -size 512x512 -colorspace RGB -intent Relative -profile sRGB.icm xc:red blah.png
convert: Truncating profile to actual length in iCCP chunk `blah.png' @ warning/png.c/PNGWarningHandler/1472.
identify -verbose blah.png
...
  Profiles:
    Profile-icc: 3144 bytes
      IEC 61966-2.1 Default RGB colour space - sRGB
...
And the profile takes up the correct amount of space.

Does anyone else have this problem?

Re: Issue assigning ICC profiles to some images.

Posted: 2010-03-03T18:00:18-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.6.0-1 Beta available by sometime tomorrow. Thanks.