Jump to content


GD Class help - setting jpeg compression

  • Please log in to reply
1 reply to this topic

#1 SCook

  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts

Posted 26 July 2006 - 04:41 PM

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.

#2 Kris

  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 26 July 2006 - 05:15 PM

The third parameter in the imagejpeg() function is for compression. On a scale of 0 - 100, 0 being the highest compression.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users