Image to ASCII art images library.
Project description
Image to Ascii-Art
Usage
- Make sure you have Python installed in your system.
- Run Following command in the CMD.
pip install PyAscii-Art
Example
from PyAsciiArt import AsciiArt
# Path to the image
image_path = r"image.jpg"
# Create new Ascii-Art
ascii_art = AsciiArt(image_path)
ascii_art.generatePixelArray() # Generate the pixel-array of the image
ascii_art.trimPixelColors() # Set the pixel brightness value to match the char list
ascii_art.generateAsciiImage() # Generate the image
ascii_art.writeToFile("image.txt") # Write the image to the image.txt file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyAscii_Art-0.0.3.tar.gz
(3.6 kB
view hashes)