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.
blitline-resizer
Advanced tools
Resizes images using Blitline. Takes an array of image urls and an array of sizes and will copy all resized images to an Amazon S3 bucket. Right now sizes are for fit to width. Images need to be online and publicly accessible.
Created for resizing images for use on responsive websites, hence for now only fits width.
Create a Blitline account and get a valid Application Id (a developer account is free).
Set up permissions on an Amazon S3 bucket so that Blitline can put the results there.
You will need a server that can receive and process the postback (think webhook) that Blitline posts to when image processing is complete.
var config = {
blitlineAppId: 'YOUR_BLITLINE_APP_ID',
postbackUrl: 'http://valid.url/to/receive/postback',
s3Bucket: 'AMAZON_S3_BUCKET_NAME'
}
var resize = require('blitline-resizer')(config);
var options = {
images: [ 'array', 'of', 'valid', 'image', 'urls'],
sizes: [ 100, 200 ] // array of widths to resize to
}
resize(options, function(err, response) {
console.log(response);
// responds with a hash or results with job_ids see https://www.blitline.com/docs/api
}
Needs a config file ./test_config.json
:
{
"blitline_app_id": "YOUR_BLITLINE_APP_ID",
"s3_bucket": "TEST_AMAZON_S3_BUCKET_NAME"
}
npm test
Add options.retina
to also create retina versions of images. Defaults to false. NB. Breaking change previously it created retina versions by default.
FAQs
Resizes images using Blitline
The npm package blitline-resizer receives a total of 0 weekly downloads. As such, blitline-resizer popularity was classified as not popular.
We found that blitline-resizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.