Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandremasy/utils-giftosprite
Transform animated gif to sprite for enhanced performance
https://github.com/alexandremasy/utils-giftosprite
Last synced: 18 days ago
JSON representation
Transform animated gif to sprite for enhanced performance
- Host: GitHub
- URL: https://github.com/alexandremasy/utils-giftosprite
- Owner: alexandremasy
- License: mit
- Created: 2014-05-21T11:09:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-21T19:34:03.000Z (over 10 years ago)
- Last Synced: 2024-11-06T19:55:53.544Z (2 months ago)
- Size: 3.92 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
giftosprite
===========Transform an animated gif to a jpeg sprite. Some metadata are stored at the end of the file to help the parser to reproduce the animation. Currently the framerate is deduced from the first frame.
The script has been tested only on osx 10.9.2 but should work on previous version of the os.
The demonstration page is available at: http://ahsx.github.io/giftosprite/
## Dependencies
- `ImageMagick 6.8.x+`
For an easy install on osx use [Homebrew](http://brew.sh/):```bash
brew install ImageMagick
```- `gifsicle 1.+`
You'll find the installation instruction on the [official website](http://www.lcdf.org/gifsicle/)## Usage
```bash
giftosprite.sh [source] [destination]
```**Source:** The source file must exists and be a image/gif file.
**Destination:** Can be either a relative or an absolute path. The script will output a jpeg file so name## Example
Convert file.gif to a spritesheet named file.jpg
```bash
giftosprite.sh file.gif file.jpg
```## TODO
Possible enhancement for the script.
- Add an option for the output format
- Handle multiple framerate