Hui Wang

no Tech, no Info

Hope you find this simple and helpful.

GD Library Error: imagecreatetruecolor does not exist

Posted on | July 3, 2009 | Views (2,258)

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”

  • Will
    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

    [Reply]

    Hui Reply:

    Thanks for your kind comment. I am currently working with wordpress, so you might find more error reports or solutions on my site.

    [Reply]

  • Aan Dwianta
    November 2nd, 2009 @ 3:02 PM

    thx

    [Reply]

  • veron
    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?

    [Reply]

    Hui WANG Reply:

    Hi, Veron, did you forget to restart your web server ?

    [Reply]

Leave a Reply






  • About

    Hui WANGHi everyone, 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.

  • Find Me On

  • Search