resizeExactWidth
Resize image to exact width. Height is auto calculated. Useful for creating column of images with the same width.
resizeExactWidth ( ImageInterface &$image, int $newWidth ): EditorInterface
Parameters
image
Instance of Image.
newWidth
Width in pixels.