Coder Social home page Coder Social logo

pic2pal's Introduction

Linux shell script that uses FFmpeg to bulk create palettes from files in the current directory, then ImageMagick to enhance them and optipng for lossless compression.

setup : $ sudo apt-get install ffmpeg magick optipng

usage (positional) : $ ./pic2pal [-option] [-flag value]

options :

-n : number of colors : takes '1' to '256' (default is '256')

-t : add transparency color, useful to create ready-to-use palettes, like for a filter

-l : height of the generated palette, in number of pixels (default is '500')

-w : width of the generated palette, in number of pixels (default is '500')

-f : forces size, useful to have a predictable output

-c : lossless compression of palettes

Exemple : $ ./pic2pal -n 32 -t -l 1000 -f will create a 1000x500 32 colors palettes (31 + transparency) for every image in the current directory

wishlist

x flags (done)

x automatic crop with trim (done)

x PNG lossless compression (done)

x not-square-palette building (done)

  • other palette building methods like this in go : $ sudo apt-get install golang && go get -u github.com/mccutchen/palettor && palettor -help

pic2pal's People

Contributors

gg-off avatar

Stargazers

 avatar

Watchers

 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.