# vue-imgcrop

> ![npm version](https://img.shields.io/npm/v/vue-imgcrop.svg) ![npm downloads](https://img.shields.io/npm/dt/vue-imgcrop.svg) ![MIT](https://img.shields.io/badge/license-MIT-blue.svg)

Latest version **0.1.4** (published 2020-05-07) · 0 weekly downloads

## Install

```sh
npm install vue-imgcrop
pnpm add vue-imgcrop
yarn add vue-imgcrop
bun add vue-imgcrop
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-05-07 |
| First published | 2020-05-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 564.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bestvist |
| Maintainers | bestvist |
| Keywords | crop-image |

## Links

- npm: https://www.npmjs.com/package/vue-imgcrop
- Repository: https://github.com/bestvist/vue-imgcrop
- Issues: https://github.com/bestvist/vue-imgcrop/issues
- npm.io page: https://npm.io/package/vue-imgcrop

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [vue-class-component](https://npm.io/package/vue-class-component.md) ^7.2.3
- [vue-property-decorator](https://npm.io/package/vue-property-decorator.md) ^8.4.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2020-05-07
- 0.1.3 — 2020-05-07
- 0.1.2 — 2020-05-06
- 0.1.1 — 2020-05-06

## README

# vue-imgcrop

![npm version](https://img.shields.io/npm/v/vue-imgcrop.svg)
![npm downloads](https://img.shields.io/npm/dt/vue-imgcrop.svg)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)

A vue component for image crop. (Vue 图片裁剪组件)

## Demo 示例

[click me](https://bestvist.github.io/vue-imgcrop/)

## Env 环境

vue@2 + vue-cli3

## Install 安装

```
npm install vue-imgcrop
```

## Usage 使用

```html
<div>
  <VueImgCrop @change="handleChange"></VueImgCrop>
</div>
<script lang="ts">
  import { Component, Vue } from 'vue-property-decorator';
  import { VueImgCrop } from 'vue-imgcrop';

  @Component({
      components: {
          VueImgCrop
      }
  })
  export default class App extends Vue {

       private handleChange(imgData) {
          console.log(imgData);
        },
    };
</script>
```

### Options 配置项

| Prop | Type | Default | Desc |
| format | Array | ['jpg', 'png', 'bmp', 'jpeg'] | limit image format |
| size | Number | 5 | limit image size |
|--|--|--|--|

---
_Source: https://npm.io/package/vue-imgcrop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
