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
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

 

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.