Image Resizer : API Documentation

Type FitMode

Namespace ImageResizer

Parent Enum

How to resolve aspect ratio differences between the requested size and the original image's size.

Fields

Public fields

int value__

return int

FitMode None

Fit mode will be determined by other settings, such as &carve=true, &stretch=fill, and &crop=auto. If none are specified and width/height are specified , &mode=pad will be used. If maxwidth/maxheight are used, &mode=max will be used.
return FitMode

FitMode Max

Width and height are considered maximum values. The resulting image may be smaller to maintain its aspect ratio. The image may also be smaller if the source image is smaller
return FitMode

FitMode Pad

Width and height are considered exact values - padding is used if there is an aspect ratio difference. Use &anchor to override the MiddleCenter default.
return FitMode

FitMode Crop

Width and height are considered exact values - cropping is used if there is an aspect ratio difference. Use &anchor to override the MiddleCenter default.
return FitMode

FitMode Carve

Width and height are considered exact values - seam carving is used if there is an aspect ratio difference. Requires the SeamCarving plugin to be installed, otherwise behaves like 'pad'.
return FitMode

FitMode Stretch

Width and height are considered exact values - if there is an aspect ratio difference, the image is stretched.
return FitMode