mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Make sure image backends implement method getImageResource
This commit is contained in:
parent
f3b6bb1470
commit
8badad90df
@ -49,6 +49,13 @@ interface Image_Backend
|
||||
*/
|
||||
public function loadFrom($path);
|
||||
|
||||
/**
|
||||
* Get the currently assigned image resource
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getImageResource();
|
||||
|
||||
/**
|
||||
* Write to the given asset store
|
||||
*
|
||||
|
@ -22,6 +22,15 @@ class ImagickBackend extends Imagick implements Image_Backend
|
||||
*/
|
||||
private static $default_quality = 75;
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function getImageResource()
|
||||
{
|
||||
// the object represents the resource
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new backend with the given object
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user