Issue assigning ICC profiles to some images.

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
jyelloz

Issue assigning ICC profiles to some images.

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Issue assigning ICC profiles to some images.

Post 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.
Post Reply