Returns the type.
Possible values are:
0 (default): Scale to exact target size with background padding
- enlarge image to fit in target size (if required)
- reduce image to fit in target size (if required)
- keep image aspect ratio / proportions intact
- fill up with bgcolor to reach exact target size
- fit full image inside target size (only applies if reduced)
1: Thumbnail generation mode (like 0 but no image enlargement)
- dont't enlarge image
- reduce image to fit in target size (if required)
- keep image aspect ratio / proportions intact
- fill up with bgcolor to reach exact target size
- fit full image inside target size (only applies if reduced)
2: Scale to exact target size, crop what does not fit
- enlarge image to fit in target size (if required)
- reduce image to fit in target size (if required)
- keep image aspect ratio / proportions intact
- fit full image inside target size (crop what does not fit)
3: Scale and keep image proportions, target size variable
- enlarge image to fit in target size (if required)
- reduce image to fit in target size (if required)
- keep image aspect ratio / proportions intact
- scaled image will not be padded or cropped, so target size is likely not the exact requested size
4: Don't keep image proportions, use exact target size
- enlarge image to fit in target size (if required)
- reduce image to fit in target size (if required)
- don't keep image aspect ratio / proportions intact
- the image will be scaled exactly to the given target size and likely will be loose proportions
5: Scale and keep image proportions without enlargement, target size variable with optional max width and height
- dont't enlarge image
- reduce image to fit in target size (if required)
- keep image aspect ratio / proportions intact
- best fit into target width / height _OR_ width / maxHeight _OR_ maxWidth / height
- scaled image will not be padded or cropped, so target size is likely not the exact requested size
6: Crop around point: Use exact pixels
- This type only applies for image crop operations (full crop parameters must be provided).
- In this case the crop coordinates
x, y
are treated as a point in the middle of width, height
.
- With this type, the pixels from the source image are used 1:1 for the target image.
7: Crop around point: Use pixels for target size, get maximum out of image
- This type only applies for image crop operations (full crop parameters must be provided).
- In this case the crop coordinates
x, y
are treated as a point in the middle of width, height
.
- With this type, as much as possible from the source image is fitted in the target image size.