return $this->resource;
} if ($path === ''
) { $path =
$this->
image()->
getPathname();
} if ($imageType === ''
) { $imageType =
$this->
image()->imageType;
} return $this->
getImageResource($path,
$imageType);
} /**
* Make the image resource object if needed
*/
protected function ensureResource() { if ($this->resource === null
) { // if valid image type, make corresponding image resource
$this->resource =
$this->
getImageResource( $this->
image()->
getPathname(),