Skip to content
A Node.js library for generating rainbow party gifs
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin fix npx Aug 21, 2019
src fix opts Sep 6, 2019
test remove hardcoded opt Sep 8, 2019
.gitignore
LICENSE lol it's 2019 Aug 21, 2019
README.md Update README.md Aug 22, 2019
package-lock.json 0.0.17 Sep 8, 2019
package.json
rollup.config.js update rollup Aug 21, 2019

README.md

partyfy

npm version

Usage

partyfy(file[, options])

  • file <Buffer>
  • options <Object>
    • frameDelay <number> Speed in milliseconds between frames. Default: 75
    • overlayOpacity <number> Opacity of the overlayed party color (0 - 100). Default: 60

Returns <Promise<Buffer>>

Example

const fs = require('fs');
const partyfy = require('partyfy');

(async () => {
  const image = fs.readFileSync('my-image.png');

  const partyImage = await partyfy(image);

  fs.writeFileSync('my-party-image.gif', partyImage);
})();

npx (experimental)

npx partyfy my-image.png my-party-image.gif

You can’t perform that action at this time.