Browse files

Merge pull request #944 from wilr/imagicbackend

FIX: include ImagickBackend only when Imagick installed
  • Loading branch information...
2 parents bde6344 + af2ac1d commit 1500aba1c38f09c60e8b5e9cf3fae27e81b30ff2 @chillu chillu committed Nov 15, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 filesystem/ImagickBackend.php
View
12 filesystem/ImagickBackend.php
@@ -1,5 +1,16 @@
<?php
+
+/**
+ * @package framework
+ * @subpackage filesystem
+ */
+
+if(class_exists('Imagick')) {
class ImagickBackend extends Imagick implements Image_Backend {
+
+ /**
+ * @var int
+ */
protected static $default_quality = 75;
/**
@@ -264,3 +275,4 @@ public function croppedResize($width, $height) {
return $new;
}
}
+}

0 comments on commit 1500aba

Please sign in to comment.