imagemagick problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevrelland
Forum Commoner
Posts: 73
Joined: Mon Jan 08, 2007 7:41 am

imagemagick problem

Post 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
kevrelland
Forum Commoner
Posts: 73
Joined: Mon Jan 08, 2007 7:41 am

Re: imagemagick problem

Post by kevrelland »

cheers, it works at treat
kevin
Post Reply