mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #6469 from dhensby/pulls/4/image-backend-interface
FIX Make sure image backends implement method getImageResource
This commit is contained in:
commit
d3c24769ac
@ -49,6 +49,13 @@ interface Image_Backend
|
|||||||
*/
|
*/
|
||||||
public function loadFrom($path);
|
public function loadFrom($path);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the currently assigned image resource
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getImageResource();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write to the given asset store
|
* Write to the given asset store
|
||||||
*
|
*
|
||||||
|
@ -22,6 +22,15 @@ class ImagickBackend extends Imagick implements Image_Backend
|
|||||||
*/
|
*/
|
||||||
private static $default_quality = 75;
|
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
|
* Create a new backend with the given object
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user