Call to undefined function imagecreatefromjpeg()

Discussion in 'Install/Configuration' started by pharsi, Mar 14, 2013.

  1. pharsi

    pharsi New Member

    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.
  2. webizen

    webizen New Member

    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. pharsi

    pharsi New Member

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

  4. webizen

    webizen New Member

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

Share This Page