Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomarrell/gif_emoji
Turn images into animated rotating gifs
https://github.com/tomarrell/gif_emoji
360 creator emoji gif rotate-image
Last synced: about 1 month ago
JSON representation
Turn images into animated rotating gifs
- Host: GitHub
- URL: https://github.com/tomarrell/gif_emoji
- Owner: tomarrell
- License: mit
- Created: 2017-07-23T00:57:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T02:57:41.000Z (over 6 years ago)
- Last Synced: 2024-10-15T16:12:18.370Z (3 months ago)
- Topics: 360, creator, emoji, gif, rotate-image
- Language: Python
- Size: 456 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gif_emoji
Turn images into animated rotating gifs.## Dependencies
This package depends on the Python image library [Pillow](https://pillow.readthedocs.io/en/5.0.0/installation.html).```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
![](http://imgur.com/download/xLj8ljQ)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.