Cropper is a powerful and flexible JavaScript image cropping library designed to bring rich, interactive cropping functionality to web applications with minimal setup. It provides users with an intuitive interface to select and adjust crop regions on images using drag-and-drop, zoom, rotate, and aspect-ratio controls, making it ideal for profile picture editors, photo upload tools, and content management interfaces. Developers can initialize Cropper on any <img> element and customize it with a comprehensive set of options like fixed aspect ratios, minimum crop box sizes, and preview panes that update in real time. The library emits events for actions such as “crop start,” “move,” and “crop end,” enabling seamless integration with form submissions or client-side image processing workflows. Because it supports touch gestures and mouse interactions, Cropper works well across desktop and mobile browsers without requiring any external dependencies.
Features
- Interactive drag-and-drop crop selection
- Zoom and rotate controls for fine adjustments
- Aspect ratio and crop box constraint options
- Real-time preview panels
- Touch and mouse support across devices
- Output as canvas or base64 image data