Optional
gravity?: { (Optional) The gravity for the cropping operation
Optional
offset?: { (Optional) Specifies the offset by X and Y axes
The gravity offset on the X axis
The gravity offset on the Y axis
Specifies the gravity type
Optional
height?: numberThe height of the cropped size
if height == 0 or unset : imgproxy uses the full height
if height >= 1 : imgproxy treats it as absolute value
if height <= 1 : imgproxy treats it as relative value
Optional
width?: numberThe width of the cropped size
if width == 0 or unset : imgproxy uses the full width
if width >= 1 : imgproxy treats it as absolute value
if width <= 1 : imgproxy treats it as relative value
Generated using TypeDoc
The available options for the crop operation