Page 1 of 1

lurid colour using colorspace RGB

Posted: 2009-11-18T03:24:32-07:00
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

Re: lurid colour using colorspace RGB

Posted: 2009-11-19T20:15:15-07:00
by anthony
It may be that the image is using a srgb profile rather than a linear rgb profile.

Re: lurid colour using colorspace RGB

Posted: 2009-11-20T06:17:42-07:00
by journeyman73
the original images are CMYK is that anything to do with it?

Re: lurid colour using colorspace RGB

Posted: 2009-11-22T19:00:13-07:00
by anthony
Sorry profiles was all I could suggest.