Call to undefined function imagecreatefromjpeg()

#1
Hi

We are running litespeed 4.2 with php 5.3.8 and with following compile options:

'--with-mysqli' '--with-mysql' '--enable-memcache' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-litespeed'

uploading of png, gif works fine. However I get following error while uploading jpeg files:

PHP Fatal error: Call to undefined function imagecreatefromjpeg()

Isn't it supposed to support jpeg as gd is included ?

By the way, it is running on FreeBSD 8.2 box...

Any thoughts will be highly appreciated. Thanks.
 

webizen

Well-Known Member
#2
create a simple phpinfo page to verify if jpeg support is built in. gd will not have jpeg support if you don't have jpeg library install.
 
#3
Hi

I dont see in there in phpinfo...

is that i need to compile with --with-jpeg and --with-jpeg-dir=path to libjpeg.so ??

create a simple phpinfo page to verify if jpeg support is built in. gd will not have jpeg support if you don't have jpeg library install.
 
Top