
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Transform stream which reads files, creates thumbnails of them, and writes their filenames
Transform stream which reads files, creates thumbnails of them, and writes their filenames.
var thumbs = require('thumbs');
var thumbnails = thumbs({
small: {height: 256*2, quality: 25},
large: {max: 1024*2, quality: 50},
huge: {max: 1024*8, quality: 50}
});
thumbnails.write({
src: 'test/img/hasselblad.jpg',
dest: 'hasselblad.jpg'
});
thumbnails.on('data', function(obj) {
console.log('thumbnailed:', obj);
});
Return a transform stream which reads {src: '', dest: ''} objects and writes
{src: '', dest: ''} objects based on the given formats.
formats is an object where each key is used in the written dest name
and each value can use the following opts:
width - pixel width of the thumbnail or relative to height if undefinedheight - pixel height of the thumbnail or relative to width if undefinedmax - pixel width or height of the thumbnail depending on which dimension
is largestquality - compression quality of the thumbnail (from 0 to 100)Install imagemagick with your platform's native package manager:
apt-get install imagemagick
brew install imagemagick
pacman -S imagemagick
Install the NPM module:
npm install thumbs
MIT
FAQs
Transform stream which reads files, creates thumbnails of them, and writes their filenames
We found that thumbs 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.