Skip to main content

Image to ASCII art images library.

Project description

Image to Ascii-Art

forthebadge made-with-python
Python 3.6

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


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 details)

Uploaded Source

File details

Details for the file PyAscii_Art-0.0.3.tar.gz.

File metadata

  • Download URL: PyAscii_Art-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for PyAscii_Art-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0ead57453a2e1455ca822b84156c556882b24708fb7d92fed7227a71ba4056e2
MD5 e8d8f841346d835b02ec84a2555bdc57
BLAKE2b-256 664c1fea10f301e77caef77707126e540e600b87ea4cc112b25f71c337e0cf28

See more details on using hashes here.

Supported by

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