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.
Comments
Thank you! Thank you! Thank you! Thank you! Thank you! I had been tinkering with this for quite a while before I found your post, which solved it!
As a side note, the php_gd2.dll file is also contained in the php-5.2.10 zip file located at http://us3.php.net/get/php-5.2.10-Win32.zip/from/a/mirror
Thanks for your kind comment. I am currently working with wordpress, so you might find more error reports or solutions on my site.
thx
I only found the ;extension=php_gd.dll in the php.ini file. But I removed the ; and tried to upload a picture and still it wouldnt show up. Any thoughts?
Hi, Veron, did you forget to restart your web server ?