Color profile conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
olafvdg

Color profile conversion

Post by olafvdg »

I am running this command:
convert test.jpg -profile rgb.icc -profile cmyk.icc cmyk_test.jpg

It runs perfect on a webserver with the old IM version 6.2.4, but it fails to do a proper conversion on the slightly newer 6.2.5

The new profile gets attached, but there is no actual conversion on 6.2.5, whereas 6.2.4. does the job fine.

Since these are commercially hosted sites I do not have control over the version...
Is there any way to get 6.2.5 to do the job just like 6.2.4 does...

Thanks for the help!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Color profile conversion

Post by fmw42 »

If you really believe this is a bug, then you should post it with your images and profiles to the bugs forum at viewforum.php?f=3
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Color profile conversion

Post by anthony »

Are the profiles (which are external to IM) actually installed on the machine with the newer version?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
olafvdg

Re: Color profile conversion

Post by olafvdg »

Yes, profiles are installed and the cmyk profile is even attached to the new image as identify -verbose shows.
It just seems that the profile is attached without any conversion taking place....

Any ideas?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Color profile conversion

Post by anthony »

If the image does not have a profile, the first profile option will attach one, then the second will do the conversion.

If the image does have a profile attached the first profile option will do the conversion.





Sometimes I think a warning should be given if no color profile was present when the first profile is attached. EG something like
WARNING: no existing color profile found, attaching given profile without color conversion
Of course a -quiet operational flag will then not give the warning, while a -regard-warnings flag would cause IM to terminate with an error in that case (allowing scripts to try a second time using -quiet, and provide two profiles with a guess at the current color profile of the image)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
olafvdg

Re: Color profile conversion

Post by olafvdg »

Hi anthony,

But still that's not the problem.

I have also tried:
convert test.jpg -strip -profile "rgb.icc" -profile "cmyk.icc" cmyk_test.jpg
to strip out all profile information first.

Also in this case, the cmyk profile is attached but the colorspace of the image is still RGB, indicating no actual conversion took place.

Any further suggestions?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Color profile conversion

Post by anthony »

No sorry. As I mentioned before I don't use color profiles myself. I have only seem a lot of people with similar problems caused by color profiles, and have noted information on this. It certainaly sounded like the problem you were experiencing.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply