Skip to main content

<(||') asciibee <(||')

An image-to-ascii-art converter

Description

The default settings are tuned to work best with fine art. Play with different shaders, chunk sizes, and value inversion for different results. Remember to decrease your font size if you can't see the whole image.

Scaling is accomplished by dividing the image into chunks and converting each chunk to a single character. The chunk size can be adjusted with the -c flag. The chunk size defaults to the pixel width of the image divided by 100. The output will tell you what chunk size was used.

Installation

$ pip install asciibee

Usage

The best way to learn how to use the app is via the help text:

$ asciibee --help

The most simple command is passing in a path to an image file:

$ asciibee ~/Downloads/starrynight.png

You can use it as an importable module as well.

from asciibee.image import AsciiImage
image = AsciiImage('/Users/jnakama/Downloads/port.jpeg')
image.convert()  # Converts the image to a matrix of ASCII characters
image.ascii_matrix # It's stored here
image.show()  # Prints the characters

Development

The build system and package manager is poetry.

The easiest way to run the app locally:

$ poetry run python -m asciibee.main <path_to_image>

You can also install the deps and run it without the poetry run prefix.

                    ...         .....             ......
                   ..,,-,.         ..,.        ..,,....
                      ..,-..         .,,.     .,..
                         .-..         .,-,,..-..             ......
                          ..,,.      .####+###+..         ..,,,,,,..
                            ..+-..   -+@@@##@@#+  .....,,,,,.
                              ..,---.-++++++#+#-.,--,,,....
                                 ..-#++#######++#+,.
                        .  ..      ,#++@@@@#@@@#+..            ...
                    ..,,-,-,-,,,..,-++##@@##@###+++-,,,..,,,,,,,..
                      ......,,,-++++#+###########+++----,,,... .
             .....,,,,,,----------+++-###+#++#+++++----------,,,,,,......
       ...,,,-,,,,,,,,,-,,,,--------+-..#####-..,+-+----,,,-----,-,,,---,,,,....
    ...,,,,,,,,,,-,,,,,,,,,-,--,,--,.-+########+-,--+-----,,,,,,,---,,--,---,,,,,..
  ..,,,,,,.,,.,,,,,,,.,,--,,,,-,--..-+####@@@@@##-.,-+-,,,--,,,,,,,,--,,,,,,--,,,,.
  .,,,,,,.,.,,.,,,..,,-,,,,,,,--+..,++++++++#####+-.,----,,-,,-,,,,,,,,,-,,.,,,-,,.
  .,,,,,,.,,,.,,,,,,,,,,,,,,-,-+. .+###++#####@###+...---,,,,-,,------,,,,,,,,,..
    ...,,,,,,,.,,,,,,,,,,,,,,-,.  ,#@@@#-+###@@@@@#,   ,-,,,,,,,,,,,,,,,.,,....
                ..........,-,...  ,+##++++###@@@##+-.    .,,,.....   .
                     ..,-,...     ,+##++#++++######-.      ..,..
                    .,,,...       ,#@@##+##@@#@@@@#-.        .,,.
                   .,,.           .+####++#@@@@@@#+..         .,.
                   ...            ..+++++++######+,.          ...
                                    .+###++####@#-.
                                     ,+##+######-.
                                     ...-##@#+-...
                                        ..--...

Release files for asciibee 0.3.2

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

Source distribution (sdist)

Source distribution for asciibee 0.3.2
File Size Uploaded
asciibee-0.3.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asciibee 0.3.2
File Interpreter ABI Platform
asciibee-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / asciibee-0.3.2.tar.gz

Download URL asciibee-0.3.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c9381499713e5ee1c6cdc5c5b51fa442c0c9828455dcee4aca2fb1a70335ee9a
BLAKE2b-256 checksum
How to use checksums
aab5d0871ab93555856c999d26d8a51187394cc0c50cdbe037411cc69827b43a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Darwin/21.6.0

Release files / asciibee-0.3.2-py3-none-any.whl

Download URL asciibee-0.3.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
721a8e97d82bcbcadb28afb239874d97f3622f350f520d874e4ae6389cc35b82
BLAKE2b-256 checksum
How to use checksums
b618f3cf3f9e74cc6073ab611f317e6be053b5a17e3f18176feea49778aa0476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

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