Resizes the provided image to fit within the specified maximum size.
The result containing the resized image.
The image to be resized.
The maximum size of the longest image edge.