Learning the internals
For the more curious minds there’s a way to learn ImageMagick commands and to know exactly what phMagick is doing
1 2 3 | $p = new phmagick('results/result.png', 'results/resize.jpg'); $p->resize(100,75); echo '<pre>',print_r ( $p->getLog() ) , '</pre>'; |
This will output what phMagick is doing as well as any ImageMagick error messages or information
Array
(
[0] => Array
(
[cmd] => convert -scale "100x75>" -quality 80 -strip "results/result.png" "results/resize.jpg"
[return] => 0
[output] => Array
(
)
)
)