Cannot find GD2 dll

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cannot find GD2 dll

Postby QuibbyNaples » 03. February 2022 19:51

My brand-new installation of xampp / php (7.4.27-2 / 8.0.15-0 / 8.1.2-0) does not seem to include the file php_gd2.dll. When I attempt "imagecreatetruecolor()" or "imagecreatefromgif()" I receive the error "Call to undefined function". My phpinfo() listing does not have a section for GD - just a listing under Credits for "GD Imaging". Any guidance would be appreciated!
Not a complete newbie, but certainly not an expert!
QuibbyNaples
 
Posts: 4
Joined: 03. February 2022 19:35
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Cannot find GD2 dll

Postby Altrea » 03. February 2022 22:35

Is the extension gd2 uncommented in your php.ini file?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11941
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Cannot find GD2 dll

Postby QuibbyNaples » 04. February 2022 01:26

It is not listed in my php.ini file.
QuibbyNaples
 
Posts: 4
Joined: 03. February 2022 19:35
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Cannot find GD2 dll

Postby Altrea » 04. February 2022 01:44

It is, at least in your XAMPP 7.4.27-2 version.
Since PHP 8 the extension is renamed to only gd
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11941
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Cannot find GD2 dll

Postby QuibbyNaples » 04. February 2022 02:04

Fascinating. The php.ini file is significantly different from the php.ini I have been using. The entire section headlined “Dynamic Extensions” is new - and as you suggested, the line “extension=gd” is commented. Tomorrow I will test that - and thanks for your time!
QuibbyNaples
 
Posts: 4
Joined: 03. February 2022 19:35
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Cannot find GD2 dll

Postby QuibbyNaples » 04. February 2022 13:27

Problem resolved - uncommented the line and phpinfo() now finds a section for "GD". Code now works as expected - thank you!
QuibbyNaples
 
Posts: 4
Joined: 03. February 2022 19:35
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Cannot find GD2 dll

Postby Altrea » 04. February 2022 19:48

You are welcome 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11941
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 143 guests