Property | Type | Description | |
---|---|---|---|
$height | integer | ||
$width | integer |
Method | Description | |
---|---|---|
getAspectRatio ( boolean $respectOrientation = false ) : float | Edge / aspect ratio of the image | |
getHeight ( ) : integer | Height of the image in pixels | |
getOrientation ( ) : string | Orientation of this image, i.e. portrait, landscape or square | |
getWidth ( ) : integer | Width of the image in pixels | |
hasDimensions ( ) : boolean | Does the asset have dimensions | |
isOrientationLandscape ( ) : boolean | Whether this image is in landscape orientation | |
isOrientationPortrait ( ) : boolean | Whether this image is in portrait orientation | |
isOrientationSquare ( ) : boolean | Whether this image is square aspect ratio and therefore has a square orientation |
public getAspectRatio ( boolean $respectOrientation = false ) : float | ||
$respectOrientation | boolean | If false (the default), orientation is disregarded and always a value >= 1 is returned (like usual in "4 / 3" or "16 / 9") |
return | float |
public getOrientation ( ) : string | ||
return | string | One of this interface's ORIENTATION_* constants. |
public hasDimensions ( ) : boolean | ||
return | boolean |
public isOrientationLandscape ( ) : boolean | ||
return | boolean |
public isOrientationPortrait ( ) : boolean | ||
return | boolean |
public isOrientationSquare ( ) : boolean | ||
return | boolean |