Skip to content
Advertisement

Image resize issue in PHP – gd creates ugly resized images

I am creating thumbnails of fixed height and width from my PHP script using the following function

JavaScript

and I call this function with following parameters

JavaScript

but the problem is the resulting image is of very poor quality, when I perform the same operation with Adobe Photo shop, it performs a good conversion.. why it is so? I am unable to find any quality parameter, through which I change the quality of output image..

Advertisement

Answer

Use imagecopyresampled() instead of imagecopyresized().

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement