Filters dimensions to constrain down-sampled images to.
Parameters
$dimensionsint[]- An array of width and height values.
0intThe width in pixels.1intThe height in pixels.
$current_widthint- The current width of the image.
$current_heightint- The current height of the image.
$max_widthint- The maximum width permitted.
$max_heightint- The maximum height permitted.
Source
* @param int $current_width The current width of the image.
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.