thumb patch (still not working)

This commit is contained in:
real_nowhereman 2011-08-25 19:39:13 +00:00
parent e5f7052516
commit 51e36e4da2

View File

@ -86,7 +86,6 @@ function plugin_thumb_create($fpath, $infos, $new_width, $new_height) {
$scaled = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($scaled, $image, 0, 0, 0, 0, $new_width, $new_height, $infos[0], $infos[1]);
/*
* If gif or png preserve the alpha channel
*
@ -102,6 +101,8 @@ function plugin_thumb_create($fpath, $infos, $new_width, $new_height) {
$output='jpg';
}
imagecopyresampled($scaled, $image, 0, 0, 0, 0, $new_width, $new_height, $infos[0], $infos[1]);
if($output=='png') {
imagepng($scaled, $thumbpath);
} elseif($output=='gif') {