auro Posted July 11, 2008 Share Posted July 11, 2008 When making thumbnails or icons dynamically, PHP reduces the quality to a large extent. Output seems to be too much distorted. Can anyone please help how to retain the quality? Quote Link to comment Share on other sites More sharing options...
corbin Posted July 11, 2008 Share Posted July 11, 2008 Distorted? How? Is the quality degraded or does the image get squished? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 11, 2008 Share Posted July 11, 2008 1) You need to resize in proportion. 2) Use imagecopyresampled instead of imagecopyresized if you want better quality. Quote Link to comment Share on other sites More sharing options...
ratcateme Posted July 11, 2008 Share Posted July 11, 2008 if you are using GD you can set the image to high quality using this imagejpeg($im,$output_file,100); also some formates give better quality than others Scott. Quote Link to comment Share on other sites More sharing options...
auro Posted July 11, 2008 Author Share Posted July 11, 2008 Ya i'm retaining the proportion. and yes i'm using imagecopyresampled... but it destroys the image quality to a large extent when i try to resize the image to even 80% I think it is because i'm making small thumbnails. Thumbnail width is 120, 180 etc. from image of 240 Thanks for replying DarkWater and Corbin Quote Link to comment Share on other sites More sharing options...
auro Posted July 11, 2008 Author Share Posted July 11, 2008 Thanks scott! 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.