Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
vue-cropper
Advanced tools
npm install vue-cropper
import VueCropper from vue-cropper
<vueCropper
ref="cropper"
:img="option.img"
:outputSize="option.size"
:outputType="option.outputType"
></vueCropper>
name | toDo | default | optional |
img | img url | null | url || base64 || blob |
outputSize | crop produces quality of pictures | 1 | 0.1 - 1 |
outputType | crop img output type | jpg (jpg need jpeg) | jpeg || png || webp |
info | crop box size show | true | true || false |
canScale | the scroll to scale | true | true || false |
autoCrop | auto create crop box | false | true || false |
autoCropWidth | auto crop box width | box size 80% | 0~max |
autoCropHeight | auto create crop box height | box size 80% | 0~max |
fixed | open crop box width height ratio | true | true | false |
fixedNumber | crop box width height ratio | [1 : 1] | [w : h] |
this.$refs.cropper.startCrop()
this.$refs.cropper.stopCrop()
this.$refs.cropper.clearCrop()
this.$refs.cropper.getCropData((data) => {
// do something
console.log(data)
})
this.$refs.cropper.getCropBlob((data) => {
// do something
console.log(data)
})
FAQs
A simple Vue picture clipping plugin
The npm package vue-cropper receives a total of 14,139 weekly downloads. As such, vue-cropper popularity was classified as popular.
We found that vue-cropper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.