Jump to content

Archived

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

SCook

GD Class help - setting jpeg compression

Recommended Posts

Hi all,

I use the GD class extensively to resize and resample images uploaded by clients to their sites.  However, I've run into a problem with the jpeg compression rate.  I think the GD class is using high compression and I want to change that.  Does anyone know the function to do this?  Or a quickie how to?  Thanks.

Share this post


Link to post
Share on other sites
The third parameter in the imagejpeg() function is for compression. On a scale of 0 - 100, 0 being the highest compression.

Share this post


Link to post
Share on other sites

×

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.