![]() |
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. |
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.
|
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:
|
yes, option '--with-jpeg-dir=' is needed.
|
| All times are GMT -7. The time now is 03:58 PM. |