How do I know if I have a gd or imagemagick library?

This may seem like a really stupid question. I am a new php image processing. I assume that in php there are only two image processing libraries. They are called GD / GD2 and Imagemagick. How to find out what I installed? or if i installed any? I have echo-ed phpinfo. He simply says that the image of GD was created by Rasmus Lerdorf, Stig Bakken, Jim Winstead, Juni Ahto, Ilya Alshanetsky, Pierre-Alain Joy, Marcus Boerger. I'm really confused. Thanks in advance.

+6
source share
3 answers

If you can go to the console of the server running PHP, enter:

php -i | grep 'GD\|ImageMagick' 

This will tell you whether GD or ImageMagick is installed or running.

+8
source

This is also a good answer that helped me. Thanks @Class

 if(extension_loaded('gd')){/*loaded*/} 
+4
source

Just enter:

yum info gd

which shows all the details about the installed gd library ..

0
source

Source: https://habr.com/ru/post/974431/


All Articles