Crop
Get a cropped region from the original image
| Transformation | Examples | Description |
|---|---|---|
crop=left,top,width,height | crop=150,170,200,50 | request a cropped region from the original image |
crop=width,height,align | crop=150,100,face crop=150,100,left crop=150,100,right crop=150,100,top crop=150,100,bottom crop=150,100,center | request a cropped region with output centered around a area or face/feature |
crop=width,height | crop=150,100 | request a cropped region with output centered around a face/feature as default |
The transformation parameters are described below:-
| Parameter | Description |
|---|---|
left | left pixel co-ordinate for the crop |
top | top pixel co-ordinate for the crop |
width | width of the cropped image |
height | height of the cropped image |
align | alignment for automatic crop for given width and height. Can be left, right, top, bottom, center or face. face aligns the center of image to most prominent face or feature in the image. |