106

GitHub - scotchfield/party-party-party: Turn a source image into an animated par...

 6 years ago
source link: https://github.com/scotchfield/party-party-party
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

party-party-party

Turn a source image into an animated party emoji!

This smiling emoji is pretty cool:

Smiling Emoji

However, it might be jealous of all those parrots and their parties. Let's help out our emoji friend.

Party Smiling Emoji

Note: If you'd like to create emojis for Slack, make sure your input image is 128x128 (or less).

Usage

bin/ppp smile.png party.gif

Radius

If you want to tune the radius of the animating circle, you can use the --radius=<n> option. The default for this is 10.

For example, bin/ppp --radius=0 smile.png party.gif will create a party version of smile.png where the image has an ounce or two less party.

Still Party Smile Emoji

Rotation

If you want the part emoji to rotate instead of (or in addition to!) moving, pass --rotate=1. If you want it to rotate extra fast, try --rotate=2 or more!

Rotating Party Smile Emoji

const fs = require("fs");
const PartyPartyParty = require("party-party-party");

const outputFileStream = fs.createWriteStream("my-output-file.gif");
PartyPartyParty("my-input.png", outputFileStream, 10);

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK