LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Call to undefined function imagecreatefromjpeg()

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2013, 05:51 AM
pharsi pharsi is offline
New Member
 
Join Date: Mar 2013
Posts: 2
Default 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.
Reply With Quote
  #2  
Old 03-14-2013, 10:47 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
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.
Reply With Quote
  #3  
Old 03-14-2013, 10:54 AM
pharsi pharsi is offline
New Member
 
Join Date: Mar 2013
Posts: 2
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 View Post
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.
Reply With Quote
  #4  
Old 03-14-2013, 11:01 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
yes, option '--with-jpeg-dir=' is needed.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:14 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.