summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/libraries/Image/Drivers/imagemagick.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/application/libraries/Image/Drivers/imagemagick.php b/application/libraries/Image/Drivers/imagemagick.php
index bcd8da40b..ed0c70dc6 100644
--- a/application/libraries/Image/Drivers/imagemagick.php
+++ b/application/libraries/Image/Drivers/imagemagick.php
@@ -15,7 +15,15 @@ class imagemagick implements \libraries\Image\ImageDriver {
public static function get_priority($mimetype)
{
- return 100;
+ $mimetype = $mimetype;
+ $base = explode("/", $mimetype)[0];
+
+ if ($base == "image"
+ || in_array($mimetype, array("application/pdf"))) {
+ return 100;
+ }
+
+ return -1;
}
/**