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? Link to comment https://forums.phpfreaks.com/topic/114204-php-image-handling-functions-reduce-photo-quality/ 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? Link to comment https://forums.phpfreaks.com/topic/114204-php-image-handling-functions-reduce-photo-quality/#findComment-587213 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. Link to comment https://forums.phpfreaks.com/topic/114204-php-image-handling-functions-reduce-photo-quality/#findComment-587217 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. Link to comment https://forums.phpfreaks.com/topic/114204-php-image-handling-functions-reduce-photo-quality/#findComment-587218 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 Link to comment https://forums.phpfreaks.com/topic/114204-php-image-handling-functions-reduce-photo-quality/#findComment-587219 Share on other sites More sharing options...
auro Posted July 11, 2008 Author Share Posted July 11, 2008 Thanks scott! Link to comment https://forums.phpfreaks.com/topic/114204-php-image-handling-functions-reduce-photo-quality/#findComment-587220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.