Description
VueCroppie is a Vue 2 wrapper for Croppie, a JavaScript photo cropping tool. It lets you use Croppie as a Vue component, and Croppie's options are exposed as component props. You can crop an image from a direct image link, or add a file input to a form so users can crop their own uploads. The component emits events, including update when the crop is zoomed, dragged or changed, and result when you ask for the cropped image. The resultType prop sets how the result is encoded, and it defaults to base64. A component ref gives a parent component access to methods such as result(). The README covers installing from npm, loading the script from unpkg, and using the component with Webpack or Parcel or directly in a browser page. It is aimed at developers who build Vue 2 forms that need image cropping, such as profile photo uploaders.…
Highlights
- Croppie cropping as a Vue 2 component
- Crop from an image URL or a user's file upload
- Croppie options exposed as component props
- Update and result events, with base64 output by default
- Install from npm or load from a CDN
Ratings & Reviews
No ratings yet
Be the first to rate vue-croppie.
People also visit

vue-advanced-cropper
An advanced cropper that gives you opportunity to create almost any cropper
vue-croppie FAQ
What is VueCroppie?
A Vue 2 wrapper for Croppie, a JavaScript image cropping tool. It gives you a vue-croppie component you can place in your templates.
How do I install it?
Install the vue-croppie package from npm, or load vue-croppie.js from unpkg. The README also covers Webpack, Parcel and plain browser pages.
Can users crop their own photos?
Yes. Add a file input in your form next to the vue-croppie component, and the cropper works on the uploaded file instead of a direct image link.
What does the result method return?
A cropped image. The resultType prop controls the encoding, and it defaults to base64.
Is it open source?
Yes. The source is public on GitHub at github.com/jofftiquez/vue-croppie.
What are the best vue-croppie alternatives?
Popular alternatives to vue-croppie include vue-cropper, vue-advanced-cropper and vue-picture-cropper. See all vue-croppie alternatives























