Jump to content

[SOLVED] Best function to save jpg images?


StanLytle

Recommended Posts

What is the best function and way to save jpg images.  I have a page that does this now, but when the image is saved, it dithers in 8x8 pixel arrays that degrades the image quality.  I think the function currently used is "imagejpeg($image2,$src,95)".  The 95 is necessary to keep the image from bloating to a larger size when saved. 

 

Thanks,

Stan

 

Link to comment
https://forums.phpfreaks.com/topic/44504-solved-best-function-to-save-jpg-images/
Share on other sites

Right now, there is a 300K website file size limit for incoming images.  Internally, the website adds a banner to the bottom of the image (copyright by yourname, and website name), and then saves them combined as one image.  If the quality parameter is set to 100, some of the saved images bloat to ~450K.  It appears that photo editing software does a much better job of reducing file size and maintaining quality as compared to the php function.  I'm thinking there has got to be a better way than what I have now of preserving the incoming quality.

 

Stan

 

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.