note 50330 added to function.imagecreatefromjpeg
| From: | ceefour-at!-gauldong dot net at osu1 dot php dot net | Date: | Thu, 24 Feb 2005 22:24:31 +0000 |
| Subject: | note 50330 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85504@lists.php.net to get a copy of this message | ||
I have to say recompiling PHP from the sources and enabling JPEG support in gd took me awhile to
figure out.
Somewhere especially configure --help should have stated that --with-jpeg-dir is MANDATORY if you
want to have JPEG support. And even if you did so, it doesn't mean you'll get it. If
it's wrongly configured, no error is going to be output, all you get is "no JPEG
support". What's more confusing is when JPEG support is disabled phpinfo won't say
"JPEG Support: disabled", but just omit the entry so you won't even realize something
is wrong.
If you recompile PHP or gd, make sure:
- rm -f config.cache FIRST
- make clean (this helps A LOT), actually you can just delete modules/gd.*, and every *.o in ext/gd.
this part actually gave me the best headache
- ./configure --with-jpeg-dir=/usr/lib OR any other directory which contains the BINARY library of
libjpeg
- make, make install
phpinfo should now display jpeg support... good luck.
(you lucky guys who already have PHP 5 installed on your server... you don't have to go through
all the mess I had)
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50330
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50330&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50330&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50330&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50330&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50330&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50330&report=yes
Search -- http://master.php.net/manage/user-notes.php