bad quality with imagecopyresampled [PHP4]
| From: | Torst | Date: | Tue, 21 Oct 2003 23:15:38 +0000 |
| Subject: | bad quality with imagecopyresampled [PHP4] | ||
| Groups: | php.general php.smarty.general | ||
| Request: | Send a blank email to php-general+get-167023@lists.php.net to get a copy of this message | ||
imagecopyresampled makes bad quality jpeg images when scaling them down,
especially on areas of the same colour (i.e. large font).
I am using antialiasing.
I thought I'd try converting the images to png - imagecopyresampling them -
and then save as jpeg, however I can't seem to get it to work!
Here's some of the code I'm using:
/////////////////////////////////////////////////////
imagecreatefromjpeg($src);
// add convert here
imagecopyresampled($destImage, $srcImage, 0, 0, 0,
0,$destSize[0],$destSize[1],$srcSize[0],$srcSize[1]);
imagejpeg($destImage,$dest,$quality);
/////////////////////////////////////////////////////
How can I convert the jpeg to png temporarily before imagecopyresample?
Please help!