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

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
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

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

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony »

I do not believe -profile has a search path when looking for profile files.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply