Skip to content
GitHub

Image Cropper

Crop images with zoom, rotation, and aspect ratio.

Installation

Usage

Examples

Aspect ratio

Use the aspectRatio to lock the crop area to a specific aspect ratio.

Circle crop

Use cropShape="circle" for profile pictures or avatars.

Initial crop

Start with a pre-defined crop area using the initialCrop prop.

Controlled zoom

Control zoom programmatically with the zoom and onZoomChange props.

Zoom limits

Set minZoom and maxZoom to constrain how far users can zoom.

Min and max size

Constrain the crop area size with minWidth, minHeight, maxWidth, and maxHeight.

Fixed crop area

Set fixedCropArea to true when the crop area should stay fixed while the image moves underneath.

API Reference

ImageCropper

Root wrapper. Manages crop state and handles.

ImageCropperImage

Image to crop. Pass src and alt.

ImageCropperSelection

Crop selection overlay with resize handles and optional grid.


For a complete list of props, see the Ark UI documentation.