Hello everyone!
On my host server, they have installed the latest version of imagemagick for me. When I run the following command, I get a warning message for it:
convert qfobiHNWZXsaraship.jpg -font /usr/share/fonts/msttcorefonts/impact.ttf -pointsize 50 -gravity center -annotate +0+0 'Hello world' outimage.png
Everything actually is processed as it should, with the right point size, font, annotation etc, but the only thing that happens is I get the warning message after. (Note: I have access to ssh and run the commands that way to test on the server hence how I immediately am able to see the warning message)
The warning message is: convert: Embedded profile length in iCCP chunk is negative `outimage.png' @ warning/png.c/MagickPNGWarningHandler/1830.
They also installed fonts on the server recently for me as well just to note.
I was thinking maybe it was something to do with simply just outputting as .png file, but when I do the following command, everything works with no warnings:
convert qfobiHNWZXsaraship.jpg -colorspace Gray grayout.png
IM version just to note:
ImageMagick 6.8.5-9 2013-06-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib freetype jng jp2 jpeg lcms png ps tiff x zlib
Hopefully it's not something major. Thank you!
Embedded profile length in iCCP chunk is negative
Re: Embedded profile length in iCCP chunk is negative
Post a URL to qfobiHNWZXsaraship.jpg. We need to download it and reproduce the problem before we can comment further.
Re: Embedded profile length in iCCP chunk is negative
libpng-1.6 checks the contents of the iCCP chunk. Previous versions just handled it as an opaque box and passed the contents back to the application without inspecting them. The negative embedded length is likely due to an endian mismatch between the profile writer and libpng. I'll take a look if you provide the input JPG.