Skip to main content

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.

Release files for im2ascii 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for im2ascii 0.0.1
File Size Uploaded
im2ascii-0.0.1.tar.gz 1.9 kB Details

Release files / im2ascii-0.0.1.tar.gz

Download URL im2ascii-0.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7ad3833fe37ee5e69eedb2103faf339bc1367038975db59976a85ce6ad96b395
BLAKE2b-256 checksum
How to use checksums
06510a2e27c414a8bd23633001a7ec6145fbe83874295044c49e3a53f87d6268
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page