fedora -> php -> gd -> jpeg/png

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
I'm probably grasping at straws here :(

I'm trying to install a php photo gallery that uses gd to make thumbnails and otherwise scaled pictures. None of the scaling seems to work when it tries to operate on jpegs or pngs, but it works fine on gifs.

I have determined that the problem happens upon the first call to imagecreatefromjpeg() (or png) which is the first gd call to happen in the request. Everything seems to blow up there, as no code after that call executes.

Has anybody ever run into similar problems or have any ideas? I'd be happy to post relevant installation info and stuff from phpinfo() if it'd help.

TIA
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Update:

from phpinfo(), the "Configure Command" section:
'--with-jpeg-dir=/usr' '--with-png-dir=/usr'

libjpeg and libpng are both in /usr/lib, not /usr. Would that be the cause of the problem and is recompiling php the only way to fix this? There is no --with-gif-dir option specified... I guess I'll have to go tracking down fedora bugs and see if this is something that should be reported.

Anyways, even if you don't know the answer, I'd really appreciate it if some of you could post the same items from your phpinfo(), especially if you aren't using fedora core 4.

Thanks.