"; $array = array(); /* Replace test.jpg with the name of a jpg image in the same folder as this code and run it. */ /* Note, the output is placed in a directory named test. If it doesn't exist, create it and chmod it to 777 for writing. */ exec("convert test.jpg -thumbnail 50x50 test/output2.jpg 2>&1", $array); print_r( $array ); echo "Using /usr/local/bin/convert:
"; $array = array(); ?>