StanLytle Posted March 27, 2007 Share Posted March 27, 2007 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 Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted March 27, 2007 Share Posted March 27, 2007 bloat = quality So less bloat = more pixalated monk.e.boy Quote Link to comment Share on other sites More sharing options...
StanLytle Posted March 27, 2007 Author Share Posted March 27, 2007 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 Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted March 28, 2007 Share Posted March 28, 2007 Maybe you could script GIMP to do the jpg reduction? http://www.gimp.org/tutorials/Basic_Batch/ It looks like you can run it from the command line, so it should be well easy to do a system('gimp -b ') command. monk.e.boy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.