Image Cropper

Dialog-based image cropper for avatar and profile images. Provides circular or rectangular crop with zoom, and returns a Blob via onCrop.

core/image-cropper

Installation

1 · Add registry to components.json

2 · Install component

Examples

Circular crop

Opens an image in the cropper dialog. Produces a Blob output.

API Reference

PropTypeDescription
openreq
booleanControls dialog visibility.
onOpenChangereq
(open: boolean) => voidCalled when the dialog requests close.
srcreq
stringSource image URL to crop.
onCropreq
(blob: Blob) => voidCalled with the cropped Blob output.
circular
booleanEnable circular crop guide.
outputSize
numberOutput image size in pixels (square). Defaults to original.
title
stringDialog title override.