Skip to main content

Display your images in form of ascii typed characters!

Project description

Im2ascii

A small python project that transforms images into ascii text

First of all import the package with:

pip install im2ascii

now import the package to your code:

import im2ascii

Now lets use it!

The only function is asciify, see:

im2ascii.asciify("/full/path/to/image.png")

This will return your image except it is typed in ascii characters!

Aditional Parameters

There are only two aditional paramters for the function, square and invert. The square parameter makes sure your image is returned squared and not a rectangle. This is activated by default on the function, to deactivate it just use:

asciify('image.png', square=False)

The invert parameter invert the tones on the result of the image. like so: For white tones, a '.' will be added, and for darker tones, a '@' will be the result. if you use invert=True, this will be inverted.

Project details


Download files

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

Files for im2ascii, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size im2ascii-0.0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page