Page 1 of 1

IM7 -profile sRGB/sRGB.icc/"sRGB.icc" bug? (with prefix?)

Posted: 2012-04-17T08:12:03-07:00
by NicolasRobidoux

Code: Select all

~/ImageMagick/bin/magick -verbose Ayamonte_San_Antonio.jpg -profile sRGB.icc junk.jpg
Ayamonte_San_Antonio.jpg JPEG 1890x2551 1890x2551+0+0 8-bit DirectClass 1.516MB 0.110u 0:00.120
magick: unable to open image `sRGB.icc': No such file or directory @ error/blob.c/OpenBlob/2608.
magick: unable to open file `sRGB.icc': No such file or directory @ error/blob.c/FileToBlob/941.
Ayamonte_San_Antonio.jpg is an 8-bit sRGB image with embedded profile.
I get the exact same error messages if I skip "-verbose" or use a version of the input image which is stripped (without a profile).
(This morning's IM7 svn.)

Although I've not tried everything and could have been more manically careful, none of what's described in http://www.imagemagick.org/Usage/formats/#color_profile and which does not involve -colorspace (yes, I know IM7 uses -colorspace "backward" from "classic" IM) appears to work.

If I hardwire the location of the profile, the error message disappears (but I'm not sure the result is correct):

Code: Select all

~/ImageMagick/bin/magick -verbose Ayamonte_San_Antonio.jpg -profile ~/ImageMagick/etc/ImageMagick/sRGB.icc junk.jpg
Ayamonte_San_Antonio.jpg JPEG 1890x2551 1890x2551+0+0 8-bit DirectClass 1.505MB 0.090u 0:00.089
/home/nicolas/ImageMagick/etc/ImageMagick/sRGB.icc ICC 1x1 1x1+0+0 16-bit DirectClass 61KB 0.000u 0:00.000
Ayamonte_San_Antonio.jpg=>junk.jpg JPEG 1890x2551 1890x2551+0+0 8-bit DirectClass 1.696MB 0.190u 0:00.179
Warning: I have not checked whether this issue is a side effect of a prefixed install.

Re: IM7 -profile sRGB/sRGB.icc/"sRGB.icc" bug? (with prefix?

Posted: 2012-04-17T18:05:40-07:00
by anthony
I do not believe -profile has a search path when looking for profile files.