]> git.mxchange.org Git - friendica.git/commitdiff
guess_image_type now uses Imagick::getImageMimeType()
authorDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 13:17:40 +0000 (15:17 +0200)
committerDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 13:17:40 +0000 (15:17 +0200)
include/Photo.php

index a9cef6a903713f07187a2d7f33342e0564554e86..c8a0ac11989d77e99140cac9874ed639998b3b42 100644 (file)
@@ -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();