Crop
Crops the input image to the defined size.
Parameters
- Width The target crop width.
- Height The target crop height.
- Anchor Controls the position of the crop area within the input image. Options include:
top-left- Crop from the top-left cornertop-center- Crop from the top centertop-right- Crop from the top-right cornercenter-left- Crop from the center leftcenter- Crop from the center (default)center-right- Crop from the center rightbottom-left- Crop from the bottom-left cornerbottom-center- Crop from the bottom centerbottom-right- Crop from the bottom-right corner
- Output Size Determines the output behavior:
cropped- Output dimensions match the crop size (width × height). The cropped area is zoomed to fill the output.original- Output dimensions match the input image. Areas outside the crop are made transparent (masked out).