lurid colour using colorspace RGB

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
journeyman73

lurid colour using colorspace RGB

Post by journeyman73 »

Hi
when i convert my cmyk images to rgb colorspace they are very vivid colours and not like the original image
where as if i convert an cmyk image to rgb in photoshop it is very close to the colors of cmyk
Why is this happening and how can i correct this

This is the code that coverts my images

Code: Select all

# Preserve colour profiles? (omit for smaller sizes)   
$profile="+profile \"*\" -colorspace RGB"; # By default, strip the colour profiles ('+' is remove the profile, confusingly)
if ($imagemagick_preserve_profiles && $id!="thm" && $id!="col" && $id!="pre" && $id!="scr") {$profile="";}

$runcommand = $command ." +matte $profile -resize " . $tw . "x" . $th . "\">\" ".escapeshellarg($path);
$output=shell_exec($runcommand);
Cheers
Kevin
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: lurid colour using colorspace RGB

Post by anthony »

It may be that the image is using a srgb profile rather than a linear rgb profile.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
journeyman73

Re: lurid colour using colorspace RGB

Post by journeyman73 »

the original images are CMYK is that anything to do with it?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: lurid colour using colorspace RGB

Post by anthony »

Sorry profiles was all I could suggest.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply