Giter VIP home page Giter VIP logo

pxlartgenerator's Introduction

PxlArtGenerator

A light tool to convert images to pixel arts using the 16-colors palette available on pxls.space.

Mona Lisa

Requirements

Java 1.7+ is required to run the program.

Download

A compiled version can be downloaded in the releases section.

Usage

Usage: java -jar PxlArtGenerator.jar <source image> <output image> [options]
  Options:
    --help
      Displays this menu
    -height, -h
      The output image height
    -output-size
      The size of the pixels on the output image
      Default: 1
    -palette, -p
      The palette to be used to draw the output image; it must be in 
      hexadecimal 
      Default: 0123456789abcdef
    -width, -w
      The output image width

Examples

Default options; the output size will be the same as the input, using all the available colors:

java -jar PxlArtGenerator.jar source.png output.png

The output pixels will be 10 times larger (useful to avoid anti-aliasing when sharing the image):

java -jar PxlArtGenerator.jar source.png output.png -output-size 10

The palette will only use white, light gray, gray and black:

java -jar PxlArtGenerator.jar source.png output.png -palette 0123

The output image will be 20 pixels long (horizontally), and the height will be calculated according to the original aspect ratio:

java -jar PxlArtGenerator.jar source.png output.png -width 20

The output image will be 50 x 50 pixels (warning, the aspect ratio can change!):

java -jar PxlArtGenerator.jar source.png output.png -width 50 -height 50

pxlartgenerator's People

Contributors

floriancassayre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.