LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   Call to undefined function imagecreatefromjpeg() (http://www.litespeedtech.com/support/forum/showthread.php?t=6762)

pharsi 03-14-2013 05:51 AM

Call to undefined function imagecreatefromjpeg()
 
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 03-14-2013 10:47 AM

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.

pharsi 03-14-2013 10:54 AM

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

Quote:

Originally Posted by webizen (Post 53046)
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.


webizen 03-14-2013 11:01 AM

yes, option '--with-jpeg-dir=' is needed.


All times are GMT -7. The time now is 03:58 PM.