How to find out if I have gd library or imagemagick installed?

odbhut.shei.chhele picture odbhut.shei.chhele · Aug 27, 2014 · Viewed 24.2k times · Source

This might seem a really stupid question. I am new php image processing. I assume there are only two imageprocessing libraries in php. They are called GD/GD2 and Imagemagick. How do I know which I have installed? or if I have installed any? I have echo-ed phpinfo. It just says that GD imaging was created by Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger. I am really confused. Thanks in advance.

Answer

Michael Berry picture Michael Berry · Sep 9, 2016

If you can get to the console of the server running PHP, type:

php -i | grep 'GD\|ImageMagick'

This will tell you if GD or ImageMagick is installed and running.