Exemplo n.º 1
0
 /**
  * Create a new ImageInterface instance from the given resource.
  *
  * @param mixed $resource Resource.
  *
  * @return \Webiny\Component\Image\ImageInterface
  */
 public function resource($resource)
 {
     return new Image($this->instance->read($resource));
 }