Skip to main content

A CLI tool for dithering images and displaying them in the terminal.

Project description

Taidepix

A command-line interface (CLI) tool for applying various dithering algorithms to images and displaying the results directly in your terminal using ASCII, block characters, Braille patterns, or full color.

Features

  • Multiple Dithering Algorithms:
    • Floyd-Steinberg
    • Simple Threshold
    • Random Dithering
    • Ordered Dithering (Bayer Matrix)
    • Atkinson
    • Burkes
    • Sierra
    • Jarvis, Judice, and Ninke (JJN)
    • Stucki
  • Flexible Output Modes:
    • Standard ASCII characters (--charset ascii)
    • Block characters (--charset blocks)
    • Braille patterns for higher detail (--charset braille)
    • Full 24-bit color output (--color)
  • Customizable Output Width: Control the width of the terminal output.

Installation

You can install Taidepix directly from PyPI using pip:

pip install taidepix

Or, if you prefer to install CLI tools in isolated environments, you can use pipx:

pipx install taidepix

Development Installation:

If you want to install it for development (e.g., after cloning the repository):

# Clone the repository (if you haven't already)
# git clone https://github.com/Aresga/Taidepix/
# cd Taidepix

# Create and activate a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

# Install in editable mode
pip install -e .

Dependencies

These will be installed automatically when you install Taidepix using pip.

Usage

The basic command structure is:

taidepix <image_path> [options]

Arguments:

  • image_path: (Required) Path to the input image file.

Options:

  • --width or -w: Set the output width in characters (default: 80).
  • --algorithm or -a: Choose the dithering algorithm (default: floyd_steinberg). Available: floyd_steinberg, simple_threshold, random, ordered, atkinson, burkes, sierra, jjn, stucki.
  • --charset or -c: Choose the character set for non-color output (default: ascii). Available: ascii, blocks, braille.
  • --color: Enable 24-bit color output (uses block characters, overrides dithering and charset).
  • --version: Show the program's version number and exit.
  • --help or -h: Show the help message and exit.

Examples:

# Dither 'image.jpg' using Floyd-Steinberg (default) and ASCII output
taidepix pictures/image.jpg

# Dither 'photo.png' using Atkinson dithering, width 100, block characters
taidepix photo.png -w 100 -a atkinson -c blocks

# Display 'logo.gif' using Braille characters
taidepix logo.gif --charset braille

# Display 'art.tif' in full color
taidepix art.tif --color

# Dither 'scenery.jpeg' using Stucki algorithm, width 120
taidepix scenery.jpeg -a stucki -w 120

Screenshots

Here are some examples of Taidepix in action:

ASCII Output: Taidepix ASCII output example

Block Character Output: Taidepix Block character output example

Color Output: Taidepix Color output example

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taidepix-0.1.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taidepix-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file taidepix-0.1.1.tar.gz.

File metadata

  • Download URL: taidepix-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for taidepix-0.1.1.tar.gz
Algorithm Hash digest
SHA256 773d17f25a5e0482385c250957ab5757d8c95169213d066a0225a0bde767bc40
MD5 cf78194faa5a93bb12fbb0f9f72fa9eb
BLAKE2b-256 f805f7e17fa66d32fc2cbe9ecc41347c3871a1e82401d81e624a8451764c09ca

See more details on using hashes here.

File details

Details for the file taidepix-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: taidepix-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for taidepix-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 977fc849a6d91368920651e2ac778658bd430ca542c4ae993fe722121e04f4a5
MD5 ca9cfaa387ad5aa7b3aed07dda3d3a64
BLAKE2b-256 8039603812f22db46fe4593e7c696dec415d5cf7c9fed175c4f5cb040381c4c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page