Jump to content

Saving JPG images


StanLytle

Recommended Posts

This line of code aparently saves the jpg file:

 

imagejpeg($image2,$src,95)

 

If the default value is set to 100, some of the saved files are larger in size than what they were uploaded (ie: uploaded as 300K, saved as 450K).  To keep the file size from bloating, I set the parameter to 95.  But this causes the images to pixelate in 8x8 arrays, some worse than others.  Is there a better function to save jpg images so that they don't weird out?

 

Thanks,

Stan

 

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.