imagick exception
This commit is contained in:
parent
b39d9d3e71
commit
f6f3042d00
1 changed files with 1 additions and 1 deletions
|
@ -665,7 +665,7 @@ function guess_image_type($filename, $fromcurl=false) {
|
||||||
}
|
}
|
||||||
if (is_null($type)){
|
if (is_null($type)){
|
||||||
// Guessing from extension? Isn't that... dangerous?
|
// Guessing from extension? Isn't that... dangerous?
|
||||||
if(class_exists('Imagick')) {
|
if(class_exists('Imagick') && file_exists($filename) && is_readable($filename)) {
|
||||||
/**
|
/**
|
||||||
* Well, this not much better,
|
* Well, this not much better,
|
||||||
* but at least it comes from the data inside the image,
|
* but at least it comes from the data inside the image,
|
||||||
|
|
Loading…
Reference in a new issue