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 <your-repo-url>
# 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.0.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.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for taidepix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d6e45c3db535962996554a2f814141d58fd8df3b2478f036c6dc5cbc7f8a739
MD5 0dca6eaca6fecd5c62714b15e63850fe
BLAKE2b-256 12ef0e4bd1012355190eadaa28dcb22bb0dfc73c98f3b6c70654a8aa91248732

See more details on using hashes here.

File details

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

File metadata

  • Download URL: taidepix-0.1.0-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.13.3

File hashes

Hashes for taidepix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a73f5d0db7281f150ef0b2721f72e2cc16e79b9e40baaa1a7148a79dfb19dd3
MD5 f2838fdcaa56cc9676c1df50dc60acee
BLAKE2b-256 9f6690805bbb401018fc14c318c624d9444f00b1a6b7b341a4f17db206f643e1

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