
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
node-social-image-resizer
Advanced tools
Resize images to fit multiple social platforms Built on top of jimp
To use it in node.js first install by:
npm install node-social-image-resizer --save
Then import it:
const socialResize = require('node-social-image-resizer');
socialResize('./path/to/original.jpg','facebookProfile','./path/to/resized.jpg',0xFFFFFFFF)
.then(
res => console.log(res)
//./path/to/resized.jpg
)
.catch( err => console.log(err));
socialResize(srcImgPath, socialPlatformType, destImgPath = srcImgPath, backgroundColor= 0x00000000)
srcImgPath: The path of the original image
socialPlatformType The platform type, types available:
'facebookProfile'
'facebookCover'
'twitterProfile'
'twitterHeader'
'instagramProfile'
'instagramPost'
'linkedinProfile'
'linkedinCover'
'pinterestProfile'
'youtubeProfile'
'youtubeCover'
'tumblrProfile'
destImgPath [String]: Destination image path (default = source image path)
backgroundColor[rgba hex]: (default is 0x00000000)
FAQs
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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

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