
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
canvas_cropjs
Advanced tools
A cropper base on mobile.Use canvas show and crop.
example at https://cexoso.github.io/cropjs. Use mobile visit will be better.
import Crop from 'canvas_cropjs'
const crop = new Crop(ele, opt);
{
border: 1.3, // border aspect ratio
left: 0.5, // 50%
size: 0.6, // size of border box,Relative to width of canvas.
top: 0.3, // 30%
}
statusOpts: {
zoom: true
},
result: {
type: 'base64',
mimeType: '',
quality: 1
}
{
zoom: true // Add clickable Element for scaling .
}
{
type: 'base64' | 'blob' | 'all', // export base64,blob, of all of they.
mimeType: 'image/png' | 'image/jpeg', // The mimeType of export blob
quality: 1 // 0~1 quality
}
crop.addEventListener('crop', onCrop);
// cancel and crop can be Listened.
set img to crop
const img = new Image();
img.src = URL.createObjectURL(file);
crop.setImg(Img);
reset crop for next crop.
crop.reset();
show or hide the crop.
crop.show()
crop.hide()
yarn
or npm i
to install Dependenciesyarn start
or npm start
to open development environment.The example
folder includes exmaple source. And run yarn deploy will deploy example to homepage(https://cexoso.github.io/cropjs/).
FAQs
a canvas cropper of Mobile end
The npm package canvas_cropjs receives a total of 0 weekly downloads. As such, canvas_cropjs popularity was classified as not popular.
We found that canvas_cropjs demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.