MiguelMJ / MakeItPixel

Image processing tool to make images look like pixel art
MIT License
47 stars 6 forks source link
image-processing pixel-art pixel-art-maker sfml

Make images look like pixel art

Preview

Original:

Example results:

Table of contents

Features

Future features

Dependencies

Build

g++ src/* -Iinclude -lsfml-graphics -o makeitpixel

Contributing

Contributors

This list is empty... for now ;)


Usage

In the wiki you'll find a detailed explanation of how MakeItPixel works and how to configure it.

makeitpixel [-h] [-c FILE] [-x JSON] [-o DIR] FILES..

CLI options

Option Description
-h, --help Print this help message and exit.
-x, --config CONFIG Set the CLI configuration as a JSON formatted string.
-c, --config-file PATH Set the configuration file.
-o, --output-dir DIR Set the output directory for the generated images.

Configuration

There are two levels of configuration:

  1. File configuration. Overwrites default options.
  2. CLI configuration. Overwrites file configuration and default options.

The configuration is specified in JSON format. Configuration parameters will be explained in detail below.

Scaling

The first step of the process is reducing the size of the image. The parameters involved are:

Color quantization

The second step, optionally, is reducing the color space of the image. Certain strategies might require palette configuration.

Palette

If you are using a quantization strategy that requires a palette, you can configure it with the following parameters:

Examples

You will find example configuration files to showcase the usage of different parameters in the examples folder.


License

Make It Pixel uses the MIT License, a copy of which you can find here, in the repo.

The external library SFML is licensed under the zlib/png license.