Imagecreatefromjpeg and Similar Functions Are Not Working in PHP

imagecreatefromjpeg and similar functions are not working in PHP

Install GD Library

Which OS you are using?

http://php.net/manual/en/image.installation.php

Windows
http://www.dmxzone.com/go/5001/how-do-i-install-gd-in-windows/

Linux
http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/

Call to undefined function imagecreatefromjpeg() and GD enabled

I think you've installed an incomplete version of gd.

When you compile the gd extension, use the flag --with-jpeg-dir=DIR and --with-freetype-dir=DIR

ps. dont forget make clean

picture below is the incomplete version of gd:

Sample Image

picture below is the complete version of gd:
Sample Image

imagecreatefromjpeg and similar functions are not working in PHP

Install GD Library

Which OS you are using?

http://php.net/manual/en/image.installation.php

Windows
http://www.dmxzone.com/go/5001/how-do-i-install-gd-in-windows/

Linux
http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/



Related Topics



Leave a reply



Submit