How to fix “Call to undefined function imagecreatetruecolor()”

+1

Open php.ini

Replace:
;extension=php_gd2.dll

with:
extension=PATHTOPHPEXE\ext\php_gd2.dll

where PATHTOPHPEXE is the location where you installed php.exe (for instance, c:\php).
You need to remove the semicolon from the beginning of the line, before the word “extension”.

Example:
extension=c:\php\ext\php_gd2.dll

I tried to use
extension=..\ext\php_gd2.dll

but it didn’t work with relative path. It worked only with the full path.

Have you seen this?

+1