Jeyziii's avatar

GD Library extension not available with this PHP installation.

Uploading images in my system has no problem or errors but after I updated my php to 8.1 I got the GD Library error. I tried to add the "ext-gd" in composter and tried to manually add "extension=php_gd.dll" "extension=php_gd2.dll" "extension=gd" "extension=gd2"on php.ini in xampp because there is no gd extension in the file, I still get the error. I also tried publish vendor.

update: When I run the website I get "unable to load dynamic library" and "the specific module could not be found". Also, there is "Warning: Module "gd" is already loaded in Unknown on line 0".

0 likes
7 replies
lyleyboy's avatar

Can you show your phpinfo() output?

Is the extension actually loaded?

Lara_Love's avatar
Level 6

in php.ini search word extension in part of file many line are under other like this

extension=pdo_sqlite
;extension=pgsql
;extension=shmop
;extension=gd

so you add ; like below

extension=gd;

or ad it aftr

extension=pdo_sqlite
;extension=pgsql
;extension=shmop
extension=gd;

and restart xampp

Lara_Love's avatar

https://www.geeksforgeeks.org/how-to-install-php-gd-in-windows/

i do this works and go to your PHP directory/folder, then open file php.ini with your favorit text editor.

then, search for GD text using the editor. you'll see something like:

......... ;extension=php_filter.dll ;extension=php_fribidi.dll ;extension=php_gd2.dll ;extension=php_gd.dll ;extension=php_gettext.dll ;extension=php_gmp.dll .........

remove ";" in front of GD library: ......... ;extension=php_filter.dll ;extension=php_fribidi.dll extension=php_gd2.dll extension=php_gd.dll ;extension=php_gettext.dll ;extension=php_gmp.dll .........

your GD library should work now.

1 like

Please or to participate in this conversation.