
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.
image-glue
Advanced tools
Library to combine two images:
+
=>

image-glue uses sharp. Great library, thanks! 👏
npm i --save image-glue
import fs from 'fs'
import {merge} from 'image-glue'
const image1 = fs.readFileSync('./image1.jpg')
const image2 = fs.readFileSync('./image2.jpg')
const opts = { format: 'jpeg', background: { r: 150, g: 150, b: 150 }, output: { quality: 100 } }
merge([image1, image2], opts).then(combinedImage => fs.writeFileSync('./combined-image.jpg', combinedImage))
| Property | Explanation |
|---|---|
| format | Output format. Defaults to the format of the first image. |
| background | Background color. Defaults to { r: 255, g: 255, b: 255 } if first image does not have the alpha channel. Defaults to { r: 0, g: 0, b: 0, alpha: 0 } if the first image does have the alpha channel |
| output | Output properties. You can set quality like this: {quality: 1} |
FAQs
JavaScript library to combine two images together
We found that image-glue 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
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.