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
https://forums.phpfreaks.com/topic/43740-saving-jpg-images/
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.