Page 1 of 1

imagemagick problem

Posted: Wed Nov 04, 2009 3:35 am
by kevrelland
Hi,
im trying to customise resourcespace and currently it strips the profiles that we use within our images, but i want to remove the strip profile bit, any ideas.

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);  
                # echo $runcommand."<br>";
I have tried the following but all i get is a blank page

Code: Select all

# Preserve colour profiles? (omit for smaller sizes)   
                $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);  
                # echo $runcommand."<br>";
Cheers
Kevin

Re: imagemagick problem

Posted: Wed Nov 04, 2009 12:06 pm
by kevrelland
cheers, it works at treat
kevin