Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
whitedot
2013-04-15 17:29:41 +09:00

View File

@ -213,8 +213,13 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
$src = imagecreatefromjpeg($source_file);
} else if ($size[2] == 3) {
$src = imagecreatefrompng($source_file);
} else {
return;
}
if(!$src)
return;
$src_width = $size[0];
$src_height = $size[1];