diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-02 23:26:37 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-02 23:26:37 +1100 |
| commit | ef39c6ab47cdde0ec9e57fd6022af1c2e55bbdec (patch) | |
| tree | 84384742ae5aec2a2afa835cd9331a424127ca3f /inc/functions.php | |
| parent | 599824d2e6398a342ae98535ee34aeef4f071dd2 (diff) | |
PNGs for thumbnails.
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php index af10f40d..c672f2b3 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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); |
