Skip to content

Aksharify

What is AsciiArt

ASCII art is a style of art in which people make graphics and designs by using letters, numbers, and symbols from a unique set of characters known as ASCII. ASCII painters create intriguing images by arranging these characters in patterns and forms rather than using colours and brushes as in traditional art. They meticulously select the appropriate characters and combine them to produce images of animals, people, or even landscapes. It's almost as if you're sketching with letters and symbols! ASCII art is a fun way for artists to express themselves using only the basic characters present on a computer keyboard.

Motivation

The inspiration for this module came from a Numberphile video called "The Trinity Hall Prime," which I first saw in high school days. It motivated me to explore the possibilities of such a prime number. I created a Python module that uses a predetermined character set to turn photos into ASCII art. It manipulates images using the PIL package, transforming them to grayscale before mapping pixel values to ASCII letters. Users can change the character set to get different effects.

About module

Aksharify is an open-source python package hosted on GitHub that allows you to effortlessly transform images into captivating ASCII art representations. With Aksharify, you can convert your favorite images into an artistic arrangement of ASCII characters, adding a unique and nostalgic touch to your projects.

Start transforming your photos into captivating ASCII art with Aksharify and unleash your creativity in the world of visual representation!

Key Features and Capabilities

  • ASCII Art Generation: Aksharify facilitates the generation of ASCII art from images, converting the pixel values into a series of characters that form the art representation.

  • Diverse Distributions: Users can choose from a variety of distributions, such as Linear, Exponential, and Normal, to control the density and arrangement of characters in the art.

  • Customizable Character Sets: Each distribution allows users to customize the character set used for generating ASCII art, enabling them to express their creativity.

  • Versatility: Aksharify supports multiple output formats, including PDF, EPS, PNG, TXT, HTML, and SVG, providing flexibility in sharing and integrating art in various media.

  • Ease of Use: Simple API for easy image-to-ASCII conversion.