Gathering detailed insights and metrics for react-image-cropper
Gathering detailed insights and metrics for react-image-cropper
Gathering detailed insights and metrics for react-image-cropper
Gathering detailed insights and metrics for react-image-cropper
react-image-editor-pro
react image cropper editor zoom rotate crop photo modal
ngx-image-cropper
An image cropper for Angular
react-advanced-cropper
The react cropper library that gives the possibility to create croppers exactly suited for your website design
react-cropper
Cropper as React Component
npm install react-image-cropper
34.3
Supply Chain
89.9
Quality
73.6
Maintenance
25
Vulnerability
99.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
174 Stars
115 Commits
56 Forks
6 Watching
3 Branches
4 Contributors
Updated on 03 Jul 2024
JavaScript (99.38%)
HTML (0.62%)
Cumulative downloads
Total Downloads
Last day
15.2%
159
Compared to previous day
Last week
1.1%
706
Compared to previous week
Last month
7.7%
3,404
Compared to previous month
Last year
-19.2%
47,698
Compared to previous year
5
35
I have barely no time work on improve this project, needs collaborators for project maintenance.
A React.JS Image Cropper Touch supported
Custom:
import {Cropper} from 'react-image-cropper'
styles are all inline
define Cropper with src, and ref to execute crop method
<Cropper
src="http://braavos.me/images/posts/college-rock/the-smiths.png"
ref={ ref => { this.cropper = ref }}
/>
image.src = this.cropper.crop()
const values = this.cropper.values()
values:
{
// display values
display: {
width, // frame width
height, // frame height
x, // original x position
y, // original y position
imgWidth, // img width
imgHeight, // img height
},
// original values
original: {
width, // frame width
height, // frame height
x, // original x position
y, // original y position
imgWidth, // img width
imgHeight, // img height
}
}
(values) => onChange(values)
prop | value |
---|---|
ratio | width / height |
width | cropper frame width |
height | cropper frame height |
originX | cropper original position(x axis), accroding to image left |
originY | cropper original position(Y axis), accroding to image top |
fixedRatio | turn on/off fixed ratio (bool default true) |
allowNewSelection | allow user to create a new selection instead of reusing initial selection (bool default true) |
styles | specify styles to override inline styles |
onImgLoad | specify fuction callback to run when the image completed loading |
beforeImgload | specify function callback to run when the image size value is ready but image is not completed loading |
onChange | triggred when dragging stop, get values of cropper |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
83 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More