aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-02-05 15:32:09 +0100
committerMax Kostikov <max@kostikov.co>2021-02-05 15:32:09 +0100
commit8bb77bcfd638b3921df0092ad0e1d39113b14e57 (patch)
tree60a0510a0b602b201e4a3b25e9de73b7d09c08de
parenta9070382e7ce072e445b507a3e0d3e2c763d948c (diff)
downloadvolse-hubzilla-8bb77bcfd638b3921df0092ad0e1d39113b14e57.tar.gz
volse-hubzilla-8bb77bcfd638b3921df0092ad0e1d39113b14e57.tar.bz2
volse-hubzilla-8bb77bcfd638b3921df0092ad0e1d39113b14e57.zip
Fix new Imagemagick object
-rw-r--r--include/photo/photo_driver.php2
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))