PNGs for thumbnails.

This commit is contained in:
Savetheinternet 2010-11-02 23:26:37 +11:00
parent 599824d2e6
commit ef39c6ab47

View File

@ -350,10 +350,10 @@
$return['width'] = $tn_width;
$return['height'] = $tn_height;
$tmp=imagecreatetruecolor($tn_width,$tn_height);
imagecopyresampled($tmp,$src,0,0,0,0,$tn_width, $tn_height,$width,$height);
$tmp=imagecreatetruecolor($tn_width, $tn_height);
imagecopyresampled($tmp, $src, 0, 0, 0, 0, $tn_width, $tn_height,$width,$height);
imagejpeg($tmp,$destination_pic,100);
imagepng($tmp, $destination_pic, 100);
imagedestroy($src);
imagedestroy($tmp);