Forum Moderators: coopster

Message Too Old, No Replies

ImageMagick

         

ahmedtheking

8:53 pm on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've managed to get ImageMagick installed on an OS X server (I've tested this by writing 'convert' in bash). However, how can I get PHP to access ImageMagick?

tripy

11:03 pm on Jan 19, 2007 (gmt 0)

10+ Year Member



You can compose an shell comamnd, and ask php to pass it to the system to execute it:


$shell=<<<BASH

convert $srcFile -geometry {$newWidth}x{$newHeight} -write $thbDir/$thbName" -type jpg

BASH;
exec($shell);

phranque

1:03 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you probably want this:
[magickwand.org...]

ahmedtheking

12:25 pm on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah I was checking out that wand thing, but installing it seems a hassle! + I installed my version of PHP and other stuff via DarwinPorts, I think that if I following wand's way on installing it, it may break my current installations.