Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@sgnl/circle-image
Advanced tools
A promise-based library for circular cropping images. This package can create several sizes of the same image and save them to disk. Using any method of your choice, you could upload the files to S3 after processing is complete.
Pull request and issues tracked here: https://github.com/eenewbsauce/circle-image
Official home on NPM: https://www.npmjs.com/package/circle-image
circle-image is based on ImageMagick. You can install it one of the following ways:
On Ubuntu
$ apt-get install ImageMagick
On Mac OS X
$ brew install ImageMagick
On CentOS
$ yum install ImageMagick
npm install circle-image --save
Make sure you have a folder called "uploads" in the root of your node application (ie: app.js). The image (imagepath) dimensions need to be larger than the biggest size specified in imageSizes below.
var images = require('circle-image');
var imageSizes = [125, 100, 30];
//uniqueId param is used to identify a user
//so use the primary key or something guaranteed to be unique
images.execute('imagepath', uniqueId, imageSizes).then(function (paths) {
//array of circularized image paths
console.log(paths[0]); //circle_user_{uniqueId}_125.png
})
FAQs
A promise-based library for circular cropping images. This package can create several sizes of the same image and save them to disk. Using any method of your choice, you could upload the files to S3 after processing is complete.
The npm package @sgnl/circle-image receives a total of 1 weekly downloads. As such, @sgnl/circle-image popularity was classified as not popular.
We found that @sgnl/circle-image 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.