mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #944 from wilr/imagicbackend
FIX: include ImagickBackend only when Imagick installed
This commit is contained in:
commit
1500aba1c3
@ -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 @@ class ImagickBackend extends Imagick implements Image_Backend {
|
||||
return $new;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user