Returns the height and width of the current image data.
public getDimensions ( ) : array | ||
return | array | An hash with 'width' containing the width, 'height' containing the height of the image. |
/** * Returns the dimensions of the given view. * * @param string $view The view (full, screen etc..) to get dimensions for * * @return array A hash of 'width and 'height' dimensions. */ public function getDimensions($view = 'full') { $this->load($view); return $this->_image->getDimensions(); }