Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -213,8 +213,13 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h
|
|||||||
$src = imagecreatefromjpeg($source_file);
|
$src = imagecreatefromjpeg($source_file);
|
||||||
} else if ($size[2] == 3) {
|
} else if ($size[2] == 3) {
|
||||||
$src = imagecreatefrompng($source_file);
|
$src = imagecreatefrompng($source_file);
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$src)
|
||||||
|
return;
|
||||||
|
|
||||||
$src_width = $size[0];
|
$src_width = $size[0];
|
||||||
$src_height = $size[1];
|
$src_height = $size[1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user