Fetch the maximum width present in the set of transformations
public getMaxWidth ( integer $width, integer $height, array $transformations ) : array | null | ||
$width | integer | The width of the existing image |
$height | integer | The height of the existing image |
$transformations | array | Transformations from the URL |
Результат | array | null | Returns an array with a single element where the index is the index of the transformation that has the maximum width, and the value of the width |