note 48702 added to ref.image
| From: | dotpointer at osu1 dot php dot net | Date: | Wed, 05 Jan 2005 10:54:04 +0000 |
| Subject: | note 48702 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82739@lists.php.net to get a copy of this message | ||
About PHP5 and imagejpeg, imagecreatefromjpeg being unknown when GD and libjpeg are installed on
UNIX (Slackware).
You need to be sure that you have JPG Support on the server before you use these functions. Use
phpinfo() and under the gd-section, see for "JPG Support: Enabled". If you can't see
any line like that there, then you're missing support.
My problem was incorrect .configure-path to the libjpeg. I wrote --with-libjpeg-dir, instead of
--with-jpeg-dir. Maybe old PHP4-syntax?
Also specifying exactly where libjpeg is located is good:
--with-jpeg-dir=/usr/lib/libjpeg.so.62
----
Manual Page -- http://www.php.net/manual/en/ref.image.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48702
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48702&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48702&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48702&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48702&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48702&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48702&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48702&report=yes
Search -- http://master.php.net/manage/user-notes.php