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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.