diff --git a/tools/benchmark.php b/tools/benchmark.php index 8c97364c..f2b5831b 100755 --- a/tools/benchmark.php +++ b/tools/benchmark.php @@ -47,6 +47,10 @@ function benchmark($method) { } benchmark('gd'); -benchmark('imagick'); +if (extension_loaded('imagick')) { + benchmark('imagick'); +} else { + echo "Imagick extension not loaded... skipping.\n"; +} benchmark('convert'); - +benchmark('convert+gifsicle');