GD Library Error: imagecreatetruecolor does not exist
Posted on | July 3, 2009 | Views (1,916)
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
5 Responses to “GD Library Error: imagecreatetruecolor does not exist”
Leave a Reply
Hi, I'm Hui, a student originally from China, now studying at TELECOM SudParis in France. Hui-wang.info is being used as a place to record my various adventures with technology and some experiences about living abroad. Happy reading !
July 11th, 2009 @ 1:38 AM
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
July 11th, 2009 @ 7:12 PM
Thanks for your kind comment. I am currently working with wordpress, so you might find more error reports or solutions on my site.
November 2nd, 2009 @ 3:02 PM
thx
November 9th, 2009 @ 9:29 PM
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?
November 9th, 2009 @ 11:52 PM
Hi, Veron, did you forget to restart your web server ?