Lurid colour using colorspace RGB

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
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
journeyman73

Re: Lurid colour using colorspace RGB

Post by journeyman73 »

anybody?
Post Reply