FIX Make sure image backends implement method getImageResource

This commit is contained in:
Daniel Hensby 2017-01-10 15:15:05 +00:00
parent f3b6bb1470
commit 8badad90df
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
2 changed files with 16 additions and 0 deletions

View File

@ -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
*

View File

@ -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
*