Skip to main content

Convert images to colored ASCII art (text + HTML)

Project description

img2ascii_pro

Convert any image into colorful ASCII art directly in your terminal or export it as HTML or text


Installation

Install from PyPI using:

pip install img2ascii-pro

Convert any image to ASCII art: img2ascii_pro myphoto.jpg

Command Options

Option Description
--width Set the output width (default: 100)
--preset Choose a character preset: realistic, minimal, or block
--invert Invert the character brightness for dark/light reversal
--html output.html Save the result as a colored HTML file
--outfile output.txt Save the ASCII result to a plain text file

Import and Use in Python

from PIL import Image from img2ascii_pro import *

img = Image.open("photo.jpg") ascii_lines, _, _, _ = image_to_ascii(img, width=100, chars=PRESETS["block"])

for line in ascii_lines: print(line)

Project details


Release history Release notifications | RSS feed

This version

1.3

Download files

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

Source Distribution

img2ascii_pro-1.3.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file img2ascii_pro-1.3.tar.gz.

File metadata

  • Download URL: img2ascii_pro-1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for img2ascii_pro-1.3.tar.gz
Algorithm Hash digest
SHA256 19f7bc9b5ee45869464e21464cae7d89ff1345d4310f18059df61491724b1e07
MD5 1dd06acbdc36b531ae923627da172329
BLAKE2b-256 cfeaa6c9e49752ee6ac16337db31de98b24333f1d0428e75f46884a7c1a05622

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