Skip to main content

Crop

Get a cropped region from the original image

TransformationExamplesDescription
crop=left,top,width,heightcrop=150,170,200,50request a cropped region from the original image
crop=width,height,aligncrop=150,100,face crop=150,100,left crop=150,100,right crop=150,100,top crop=150,100,bottom crop=150,100,centerrequest a cropped region with output centered around a area or face/feature
crop=width,heightcrop=150,100request a cropped region with output centered around a face/feature as default

The transformation parameters are described below:-

ParameterDescription
leftleft pixel co-ordinate for the crop
toptop pixel co-ordinate for the crop
widthwidth of the cropped image
heightheight of the cropped image
alignalignment 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.