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