mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-03 08:53:13 +00:00
Fixed Make error in thumbnail generation
This commit is contained in:
parent
92a1c3500e
commit
b5375414bc
2 changed files with 4 additions and 6 deletions
|
@ -12,12 +12,12 @@ class Make {
|
|||
*/
|
||||
function thumbnail($image_path, $thumbnail_path, $resolution) {
|
||||
try {
|
||||
$thumbnail = new Imagick($image_path);
|
||||
$thumbnail = new \Imagick($image_path);
|
||||
$thumbnail->resizeImage($resolution,null,null,1,null);
|
||||
$thumbnail->writeImage($thumbnail_path);
|
||||
|
||||
return "success";
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return $e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue