/** * Gets the width of the current image resource. * * @return int The width. */ public function getWidth() { return $this->resource->getWidth(); }