Pageimage::ratio()
Get ratio of width divided by height
Available since version 3.0.154.
Usage
// basic usage
$float = $pageimage->ratio();
// usage with all arguments
$float = $pageimage->ratio(int $precision = 2);
Arguments
Name | Type(s) | Description |
---|---|---|
$precision (optional) | int | Optionally specify a value >2 for custom precision Default:2 3.0.211+ |
Return value
float
Pageimage methods and properties
API reference based on ProcessWire core version 3.0.251