GithubHelp home page GithubHelp logo

ljyao / apng2webp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benny-/apng2webp

0.0 2.0 0.0 49 KB

Convert apng (animated png's) to animated webp's

License: Other

Python 4.79% CMake 12.79% C 66.09% C++ 16.34%

apng2webp's Introduction

apng2webp

Convert your animated png files to animated webp files.

External dependencies:

  • cmake
  • libpng
  • zlib
  • jsoncpp
  • pip (a python package used during installation)
  • The cwebp program must be in your path
  • The webpmux program must be in your path

Prepare

###macOS

Use Homebrew to install all the dependencies. Use easy_install to install pip

brew install webp
brew install cmake
brew install jsoncpp
sudo easy_install pip

###Linux

sudo apt-get install libwebp-dev
sudo apt-get install cmake
sudo apt-get install libpng-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libjsoncpp-dev
sudo apt-get install python-pip

Compiling and installation:

In apng2webp_dependencies/ execute:

mkdir 'build'
cd build
cmake ..
make
sudo make install

In apng2webp/ execute:

sudo python ./setup.py install

Running:

The default loop is 0(infinity) and bgcolor is 255,255,255,255.

You can also specify a temp dir to save the webp fram and optimized original apng.

apng2webp './input.png' './output.webp'
apng2webp './input.png' [-loop LOOP_COUNT] [-bgcolor BACKGROUND_COLOR] [-tmpdir TEMP_WEBP_DIR] './output.webp'

Thanks

APNG Disassembler
APNG Optimizer

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.