Crop
crop - c - c_<crop type>
Last updated
crop - c - c_<crop type>
Last updated
crop type
string
Default Value: cover
Value can be;
cover
contain
fill
Sets the crop type of image. When both and are provided, the original image aspect ratio might get broken. By changing crop type, you can adjust the aspect ratio.
Preserves the aspect ratio. Tries to cover the requested dimensions without disturbing images. Some parts of the image may get clipped off.
Ignores the aspect ratio. Stretches the image to fill empty spaces.
Crops a region from image.
Crop needs a region in order to work.
https://demo.imagemash.io/w_200,h_200,x_100,y_300,c_crop/woman3.jpg
https://demo.imagemash.io/w_200,h_200,g_face,c_thumb/woman3.jpg
crop ( or )
thumb ()
Eg. c_contain, c_crop, ... Required Parameters: ,
You can use to adjust image gravity. By default, it is . (g_center)
With parameter set to (g_face)
With parameter set to Laptop (g_laptop)
With parameter set to (g_t)
With parameter set to (g_b)
Preserves the aspect ratio. Fits the whole image in the requested dimensions. If there are empty spaces, they are filled with (bg).
Should either use with coordinates or .
To satisfy this condition, we provide , , .
Cropping with dimensions and
You can also use c_crop with without width and height. It returns the detected region as a result.
Thumb is specifically designed to make thumbnails from images. It has special algorithms that differentiate it from . Use c_thumb instead of c_crop if you are making thumbnails.
Needs in order to work.
Hey! Take a look at , you can assign your transforms into custom variables.