fit parameter controls how the image will be constrained within the provided size (
height) values, in order to maintain the correct proportions.
|Resize the image to fit entirely within the specified region, making one dimension smaller if needed.|
|Resize the image to entirely cover the specified region, making one dimension larger if needed.|
|Resize and crop the image centrally to exactly fit the specified region.|
fit parameter has no effect unless both
height are specified.
Click the links to view the transformed image using a demo Fastly IO service.
|Resize the image to fit within the bounds of 150px in width by 150px in height|
|Resize the image to entirely cover 150px in width by 150px in height|
|Crop the image to 150px in width by 150px in height|