Hi, Wednesday, October 22, 2003, 9:15:38 AM, you wrote: T> imagecopyresampled makes bad quality jpeg images when scaling them down, T> especially on areas of the same colour (i.e. large font). T> I am using antialiasing.
T> I thought I'd try converting the images to png - imagecopyresampling them - T> and then save as jpeg, however I can't seem to get it to work! T> Here's some of the code I'm using: T> ///////////////////////////////////////////////////// T> imagecreatefromjpeg($src); T> // add convert here T> imagecopyresampled($destImage, $srcImage, 0, 0, 0, T> 0,$destSize[0],$destSize[1],$srcSize[0],$srcSize[1]); T> imagejpeg($destImage,$dest,$quality); T> ///////////////////////////////////////////////////// T> How can I convert the jpeg to png temporarily before imagecopyresample? T> Please help! Make sure you use ImageCreateTrueColor() for the second image. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php