ResizableCropper Component

A simplified container for resizing and cropping images. Use the corner handle to scale, side handles to crop, and drag the image to reposition it.

Interactive Demo

Demo Image
Component State:
Wrapper Width: 300px
Wrapper Height: 200px
Wrapper Left: 0px
Wrapper Top: 0px
Content Width: -px
Content Height: -px
Content Left: 0px
Content Top: 0px
Zoom: 1.00x
Last Action: -

Different Aspect Ratios

Free Resize (No Aspect Ratio)
Demo Image
16:9 Aspect Ratio
Demo Image
1:1 (Square) Aspect Ratio
Demo Image

Control Options

Resize Only (No Crop)
Demo Image
Crop Only (No Resize)
Demo Image
Pan Only (No Resize/Crop)
Demo Image

Usage Instructions

Workflow: Use the corner handle to scale everything, use the side handles to crop, and drag the image to position it perfectly!

Events & Methods

Events

The component dispatches custom events:

Methods

Public API methods:

Try the buttons above to test getValues() and setValues()!

Check the browser console to see event logs.