ReadonlyariaAccessible label for the canvas element.
ReadonlyaspectLocked aspect ratio (width ÷ height). When set, the crop region
is constrained to this ratio. Set to null for free-form cropping.
ReadonlydisabledWhether the image cropper is disabled.
ReadonlyimageEmits the image dimensions after a source image finishes loading.
ReadonlyoutputExport format. Defaults to 'image/png'.
ReadonlyoutputJPEG quality (0–1). Only used when outputFormat is 'image/jpeg'.
ReadonlyregionEmits the current crop region (image coords) after every change.
ReadonlysrcImage source — URL, data URL, or object URL. Optional when using loadImageData to supply pixels directly.
Loads raw ImageData as the cropper source. This is the
programmatic alternative to binding a URL via the src input.
The pixel data to crop.
A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.
Resets the crop region to cover the entire image (or the largest area fitting the current aspect ratio).
Canvas-based image cropper supporting free-form and fixed-aspect-ratio cropping. Renders the source image with a draggable crop overlay and exports the result as PNG or JPEG via crop, or as raw pixels via cropToImageData.
The source can be provided as a URL string via the
srcinput, or programmatically as rawImageDatavia loadImageData.Example