@antdv-next/vue-easy-crop

A Vue 3 component to crop images and videos with easy interactions. Drag, zoom, rotate, keyboard & touch support.
2,004
Install
npm install @antdv-next/vue-easy-crop
Latest Version:0.0.2
Vue:3
License:MIT
Last Updated:Jul 29, 2026
Links: npm
Maintainer: aibayanyu

@antdv-next/vue-easy-crop

A Vue 3 component to crop images and videos with easy interactions.

Inspired by react-easy-crop. Works standalone with no UI framework dependency.

✨ Features

  • 🖱️ Drag to move the crop area
  • 🔍 Zoom via scroll wheel or pinch gesture
  • 🔄 Rotate via pinch gesture or keyboard
  • ⌨️ Keyboard arrow keys for precise positioning
  • 📱 Touch support with multi-touch gestures
  • 🟦 Rectangular and ⭕ round crop shapes
  • 📐 Fixed aspect ratio or free-form
  • 🎬 Video cropping support
  • 🌐 SSR friendly (disable auto CSS injection)

📦 Installation

pnpm add @antdv-next/vue-easy-crop

🚀 Quick Start

<script setup>
import Cropper from '@antdv-next/vue-easy-crop'
import { ref } from 'vue'

const crop = ref({ x: 0, y: 0 })
const zoom = ref(1)
</script>

<template>
  <Cropper
    image="/photo.jpg"
    :crop="crop"
    :zoom="zoom"
    @update:crop="crop = $event"
    @update:zoom="zoom = $event"
  />
</template>

📖 API

See the docs site or run locally:

pnpm --filter docs dev

📄 License

MIT

Related Packages

@xcvzmoon/vue-cropperjs

Vue component wrapper for CropperJS

876 2
vuejs-clipper

Vue.js image clipping components using Vue-Rx.

137,085 205
@antdv-next/img-crop

Image cropper integrated with antdv-next Upload. Wrap an Upload component, crop...

1,843
@dixipro/magic-image

A Vue 3 picture editor in one component: file or clipboard in, original and crop...

0 4
vue-jcrop

The Javascript cropping widget for Vue.js

3,144 9

Version History

Version Released Vue License
0.0.2 >=3.0.0 MIT
0.0.1 >=3.0.0 MIT