diff options
-rw-r--r-- | include/photo/photo_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 87b1d96fe..8de5185af 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -111,7 +111,7 @@ function guess_image_type($filename, $data = '') { elseif (is_array($data) && array_key_exists('body', $data)) $body = $data['body']; if ($body) { - $image = new Imagick($filename); + $image = new Imagick(); $image->readImageBlob($body); $r = $image->identifyImage(); if ($r && is_array($r) && array_key_exists($r['mimetype'], $types)) |