A Vue plugin for clipping and cropping pictures in the browser. It supports interactive crop boxes, rotation, and exporting cropped images.
Overview
Vue Cropper is a picture-clipping plugin for Vue applications. Users embed it in a sized container, load an image from a URL, base64, or blob, and adjust a crop region with mouse or touch interactions.
The component exposes many options: output format and quality, fixed aspect ratios, auto crop box size, wheel zoom, moving image and crop box, dpr-scaled export, and background fill on export. Callbacks report real-time preview, image and crop movement, and load success or failure.
Ref methods start and stop cropping, rotate left or right, change scale, read crop dimensions, and retrieve results as base64 or blob. Online demos illustrate contain, cover, and custom render modes.
For Vue 3, the maintainers point users toward a separate cropper-next-vue package with rotated-boundary handling and high-screen export. Vue Cropper installs through npm and integrates globally, per-component, CDN, or Nuxt with SSR disabled.
Key features
- Interactive crop box dragging and resizing
- Wheel zoom and fixed aspect ratio crops
- JPEG, PNG, and WebP export
- Real-time preview callbacks
- 90-degree left and right rotation
- Proportional export scaled to device dpr
- Base64 and blob result retrieval
- Auto-generated crop region option
Use cases
- Avatar or profile image cropping in Vue apps
- Upload flows with client-side image clipping
- Admin panels that need adjustable image crops
- Preview-before-upload image workflows