Image Size

h
Specifies the height of the image.
Example) ?h=200

max-w
Specifies the maximum width of the image. fit=crop is required.
Example) ?fit=crop&h=200&max-w=200

max-h
Specifies the maximum height of the image. fit=crop is required.
Example) ?fit=crop&w=400&max-h=150


fit=clamp
Fits the specified image size without cropping or distortion. The pixels at the top, bottom, left, and right are extended.
Example: ?fit=clamp&w=200&h=300

fit=crop
This resizes the image to the specified dimensions and crops any excess areas.
Specifying both w and h is required.
Example: ?fit=crop&w=200&h=200

You can set more details using the crop query.
Example: ?fit=crop&crop=left,top&w=200&h=200

fit=fill
Positions the image to fit within the specified size.
The empty areas are filled with fill-color.
Additionally, using fill=blur allows you to place a blurred image as the background.
Example: ?fit=fill&fill-color=331cbf&w=200&h=200

fit=fillmax
Specifies a size larger than the original image and centers the image within that size.
The empty areas are filled with fill-color.
Additionally, using fill=blur allows you to place a blurred image as the background.
Example: ?fit=fillmax&fill-color=331cbf&w=700&h=400 (original image is 600x300)

fit=max
Places the image at maximum size while maintaining the aspect ratio within the specified dimensions.
Example: ?fit=max&w=200&h=200

fit=min
This option crops the image while maintaining the aspect ratio, ensuring it does not exceed the specified size.
Example) ?fit=min&w=400&h=700

fit=scale
Scales the image to the specified size.
The aspect ratio is not maintained.
Example) ?fit=scale&w=200&h=200
