Description
vue-cropper is a simple image cropping plugin for Vue. You place it in a container with a set width and height, give it an image, and let people move, zoom and resize a crop box to choose the part to keep. The image prop accepts a URL, a base64 string or a blob. Many props control the behaviour: you can lock the crop box to a fixed aspect ratio, set its starting size, limit the crop box to the image, turn off zooming, and choose the output format (jpeg, png or webp) and output quality. It can export at the original image ratio and match the device pixel ratio for sharper output. The README says Vue 3 users should use the separate cropper-next-vue project, which the author publishes on its own. The README also covers Vue 2 and Vue 3 usage, global and CDN registration, and Nuxt, where it says to set ssr to false. It advises turning off any local mock service, which it says can cause errors when a file is cropped. The README is written in Chinese, and the project is hosted on GitHub.…
Highlights
- Crop box you can move, resize and zoom
- Fixed aspect ratio and set starting crop size
- Export as jpeg, png or webp with a quality setting
- Vue 2 usage, with a separate project for Vue 3
- Nuxt usage with SSR turned off
Ratings & Reviews
No ratings yet
Be the first to rate vue-cropper.
People also visit

vue-advanced-cropper
An advanced cropper that gives you opportunity to create almost any cropper
vue-cropper FAQ
What is vue-cropper?
It is an image cropping plugin for Vue. You place it in a container with a set width and height, load an image, and let people choose the part to keep.
Which Vue versions does it support?
The README covers Vue 2 usage. For Vue 3 it recommends the separate cropper-next-vue project, which the author publishes on its own.
What image sources can it load?
The img prop accepts a URL, a base64 string or a blob.
What output formats can I export?
jpeg, png and webp. You can also set the output quality and choose whether to export the image at its original ratio.
Does it work with Nuxt?
The README says to use it with Nuxt and to set ssr to false. It lists a separate import method for Nuxt.
What are the best vue-cropper alternatives?
Popular alternatives to vue-cropper include vue-croppie, vue-picture-cropper and vue-advanced-cropper. See all vue-cropper alternatives






















