Jump to content

Trouble enabling JPEG support in GD (PHP5)


Recommended Posts

This question pertains to Debian, and I'm compiling everything from source.

So I've got GD compiling just fine, and it seems just fine with PNG and JPEG support. In the beginning of the ./configure script, it states that JPEG support is enabled and PNG support is enabled along with a few other things. The configure, make and make install all go fine. I then compile PHP5 with some like this:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-jpeg --with-gd --with-zlib

It also configures, make and installs perfectly, without warnings, errors etc. The build works great and PHP runs fine. However, when I view phpinfo(), under the GD section, there is no JPEG support. GIF support is enabled along with PNG and others, but no mention of JPEG. I also tried some of the JPEG specific GD functions, none work, all come back undefined. PNG and GIF functions work fine.

I did notice that when make installing GD, that there was no mention of any jpeg programs being installed. There were png and gif programs being installed, but again, it stated that JPEG support was there. I've been trying to get GD with JPEG support working for quite some time now. This is the farthest I've gotten.

Any tips? Thanks.
Link to comment
https://forums.phpfreaks.com/topic/14092-trouble-enabling-jpeg-support-in-gd-php5/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.