Image Resize Modes
This document outlines the various image resizing modes used in FileFlows.
Resize Modes
Fill
Fills the image to the entire width/height specified, ignoring the aspect ratio.
Contain
Resizes the image to fit within the specified width and height while preserving its aspect ratio. If the original image's dimensions are larger than the specified width and height, it will be scaled down proportionally to fit entirely within the specified area. No additional padding is added to the image.
Cover
Resizes the image to cover the specified width/height, cropping any excess.
Pad
Resizes the image to the desired width/height, maintaining the aspect ratio, and padding the image if necessary.
Min
Resizes the image to fit within the specified width/height, maintaining the aspect ratio, but not exceeding either dimension.
Max
Resizes the image to fit within the specified width/height, maintaining the aspect ratio, but ensuring that neither dimension falls below the specified limits.
Example Scenario
For a source image with dimensions 1000x677
, the following results will be produced when resized to 200x200
:
Mode | Resulting Dimensions | Resulting Image |
---|---|---|
Fill | 200x200 | |
Contain | 200x133 | |
Cover | 200x200 | |
Pad | 200x200 | |
Min | 200x133 | |
Max | 300x200 |