From: Domovoy Date: Sun, 22 Jul 2012 13:17:40 +0000 (+0200) Subject: guess_image_type now uses Imagick::getImageMimeType() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0acb983be44dc1ca9431d680e6a7595c73eaf132;p=friendica.git guess_image_type now uses Imagick::getImageMimeType() --- diff --git a/include/Photo.php b/include/Photo.php index a9cef6a903..c8a0ac1198 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -600,7 +600,7 @@ function guess_image_type($filename, $fromcurl=false) { * we won't be tricked by a manipulated extension */ $image = new Imagick($filename); - $type = 'image/'. strtolower($image->getImageFormat()); + $type = $image->getImageMimeType(); } else { $ext = pathinfo($filename, PATHINFO_EXTENSION); $types = Photo::supportedTypes();