GithubHelp home page GithubHelp logo

timothyklim / node-gifsicle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imagemin/gifsicle-bin

0.0 2.0 0.0 1.21 MB

gifsicle Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows.

Home Page: http://www.lcdf.org/gifsicle/

JavaScript 100.00%

node-gifsicle's Introduction

node-gifsicle Build Status

gifsicle 1.71 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows.

gifsicle manipulates GIF image files in many different ways. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency and much more.

Install

Install with npm: npm install --save gifsicle

Example usage

var execFile = require('child_process').execFile;
var gifsiclePath = require('gifsicle').path;

execFile(gifsiclePath, ['-o', 'output.gif', 'input.gif'], function() {
	console.log('Image minified');
});

Can also be run directly from ./node_modules/.bin/gifsicle.

Dev

Note to self on how to update the binaries.

OS X

Run npm install on a OS X 10.7 machine to build the binary.

Linux

Run npm install to build the binary.

Windows

  • Download the Windows files 32/64-bit on a Windows machine.
  • Run the downloaded file to extract.
  • Go to the bin folder at the destination and copy gifsicle.exe.

License

Everything excluding the binaries licensed under the BSD license and copyright Google.

gifsicle licensed under the GNU General Public License, Version 2.

node-gifsicle's People

Contributors

kevva avatar sergeylukin avatar sindresorhus avatar socketwiz avatar spmason avatar timothyklim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.