
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
apng2gif
Node wrapper around apng2gif
. Supports Windows, Mac, and Linux.
const apng2gif = require("apng2gif");
const promise = apng2gif("file.png", "file.gif");
promise.then(() => {
// file.gif exists
});
apng2gif.sync("file.png", "file2.gif");
// file2.gif exists
const options = {
backgroundColor: "#ff0000",
};
apng2gif("file.png", "file.gif", options);
// or: apng2gif.sync("file.png", "file.gif", options);
const options2 = {
transparencyThreshold: 256
};
apng2gif("file.png", "file.gif", options2);
// or: apng2gif.sync("file.png", "file.gif", options2);
apng2gif(inputPath[, outputPath[, options]]) => Promise
Convert the animated PNG at inputPath
to GIF and write it to outputPath
.
Returns a Promise which is resolved when outputPath
exists.
If outputPath
is omitted, it defaults to inputPath
but with .gif
extension.
options
backgroundColor
- Background color string to blend semi-transparent pixels with (#rrggbb
format).transparencyThreshold
- Threshold against which to omit transparent pixels (0-256).You may also pass any valid child_process.spawn
options, notably:
cwd
- Directory to run apng2gif
inapng2gif.sync(inputPath[, outputPath[, options]]) => undefined
Synchronously convert the animated PNG at inputPath
to GIF and write it to outputPath
.
If outputPath
is omitted, it defaults to inputPath
but with .gif
extension.
options
backgroundColor
- Background color string to blend semi-transparent pixels with (#rrggbb
format).transparencyThreshold
- Threshold against which to omit transparent pixels (0-256).You may also pass any valid child_process.spawnSync
options, notably:
cwd
- Directory to run apng2gif
inMIT
FAQs
Convert APNG images to GIF
The npm package apng2gif receives a total of 6 weekly downloads. As such, apng2gif popularity was classified as not popular.
We found that apng2gif 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.