Extract a region of the image
In this transformation, we can remove a specified region of an image. Extraction (cropping) of a certain part can be useful when the user doesn’t want to resize an image.
Params
Top (t)
Zero-indexed offset from top edge. t
is an alias of this parameter.
Left (l)
Zero-indexed offset from left edge. l
is an alias of this parameter.
Height (h)
Height of the region to extract. h
is an alias of this parameter.
Width (w)
Width of the region to extract. w
is an alias of this parameter.
- Original
- Extract
- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/original/images/transformation/basic_chair.jpeg" />
We have extracted a region with dimensions,
w:2500,h:3500,l:900,t:2652
, from the original image.- URL
- React
<PixelBinImage url="https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/t.extract(w:2500,h:3500,l:900,t:2652)/images/transformation/basic_chair.jpeg" />