GD Library Error: imagecreatetruecolor does not exist

by Hui Wang

To solve this problem you should get gd extentioin installed and activated in PHP.

Normally the gd library is availlble with PHP 4.3+ installed. However if it doesn’t exist, for linux users, type the following command in a terminal,

sudo apt-get install php5-gd

For those who use windows, you can find it in the ext directory in php-5.2.10 zip file located at http://us3.php.net/get/php-5.2.10-Win32.zip/from/a/mirror

To enable it, open php.ini with your favorite text editor and find the following lines:

;extension=php_gd.dll
;extension=php_gd2.dll

Uncomment extension=”php_gd2″.dll by deleting the ‘;’ in front of it.

Remember to restart your web server.