Skip to content

tomarrell/gif_emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gif_emoji

Turn images into animated rotating gifs.

Dependencies

This package depends on the Python image library Pillow.

pip install Pillow

Please make sure you have the required dependencies above installed before using the library.

Usage

python ./makeGif.py [PathToImage]

The image will be automatically cropped to a square based on the smallest dimension in the horizontal or vertical direction. For best results, have the subject of the image in the center of the smallest-dimension-cropped-square from the top-left corner.

Output

A single gif output, output.gif is produced in local directory.

Currently the output is fixed to a 32x32 GIF with 36 frames rotated by 10˚ each. This produces GIFs that are below the 60kB filesize limit imposed by the custom emoji upload for Slack.

This was written to automatically generate rotating animations of people for use as Slack emojis. More info about custom Slack emojis here:

https://get.slack.help/hc/en-us/articles/206870177-Create-custom-emoji.

License

Licensed under the MIT license. Free for personal, commercial and derivative works.

About

Turn images into animated rotating gifs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages