guess_image_type now uses Imagick::getImageMimeType()
This commit is contained in:
parent
5d0bd98d2a
commit
0acb983be4
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ function guess_image_type($filename, $fromcurl=false) {
|
||||||
* we won't be tricked by a manipulated extension
|
* we won't be tricked by a manipulated extension
|
||||||
*/
|
*/
|
||||||
$image = new Imagick($filename);
|
$image = new Imagick($filename);
|
||||||
$type = 'image/'. strtolower($image->getImageFormat());
|
$type = $image->getImageMimeType();
|
||||||
} else {
|
} else {
|
||||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||||
$types = Photo::supportedTypes();
|
$types = Photo::supportedTypes();
|
||||||
|
|
Loading…
Reference in a new issue