Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mattvh/gifnuke

It's high time a certain antiquated image format was nuked from orbit. This command helps you convert animations to faster-loading WebM files.
https://github.com/mattvh/gifnuke

Last synced: 5 days ago
JSON representation

It's high time a certain antiquated image format was nuked from orbit. This command helps you convert animations to faster-loading WebM files.

Awesome Lists containing this project

README

        

It's high time a certain antiquated image format was nuked from orbit. This command helps you convert animations to faster-loading WebM files. Modern video formats not only produce much smaller files, which are easily loopable with an HTML `` element, but they also load progressively without the "slow mo" effect.

Want to see it in action? http://mattvh.github.io/gifnuke/

1.7M dealwithit.gif
94K dealwithit.webm
141K dealwithit.mp4

# Installation

Note: Before installing GIFnuke, you must have ffmpeg installed and compiled with the `--enable-libvpx` option, in order to enable WebM encoding.

npm install gifnuke -g

Or:

git clone https://github.com/redwallhp/gifnuke.git
cd gifnuke
npm install
npm link

# Converting an image

Run GIFnuke on an input GIF, and specify a name for the converted file. After the gears in your computer whir for awhile, you should get a shiny new .webm file in the directory you ran it in.

gifnuke badformat/myimage.gif myimage
gifnuke http://example.org/myimage.gif myimage

If you're converting a fancy GIF using that transparent partial-frame voodoo to reduce file size, you may need to run GIFnuke with the `--coalesce` flag. This requires that you have Imagemagick installed, as it takes advantage of the `convert` command to preprocess the GIF.

# Convert an image with frame coalescing
gifnuke badformat/myimage.gif myimage --coalesce

# License

The contents of this repository are licensed under the [GNU Public License.](http://www.gnu.org/licenses/gpl-3.0.html)