Skip to content

Verify ImageMagick installation

To verify that ImageMagick is installed, you can use the command-line tool convert. Open a terminal or command prompt and run:

bash
convert -version

If ImageMagick is installed, it will return the version number. Note that ImageMagick 7 deprecated the convert command in favor of magick, though convert remains available for backward compatibility.

You can also check if it's installed by running the which convert command on Linux/macOS and where convert on Windows. This will return the path to the convert executable if it is installed.

Additionally, you can use the command magick -version to check the version of ImageMagick.

If you see a "command not found" error, it means that ImageMagick is not installed on your system.

Since this tutorial is in the PHP category, you can also verify the extension is available in your PHP environment:

php
if (extension_loaded('imagick')) {
    echo 'ImageMagick extension is loaded.';
} else {
    echo 'ImageMagick extension is not loaded.';
}

Dual-run preview — compare with live Symfony routes.