Skip to main content

Ascii Art + Emoji Art python Package

Project description

Aksharify

Contributors Forks Stargazers Issues MIT License LinkedIn PyPI - Downloads


About The 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

  • Convert photos and images into ASCII art with a single function call.

  • Fine-tune the output by adjusting parameters such as character set, resolution etc.

  • Support for various character sets, allowing you to customize the style of the generated ASCII art.

  • Export the ASCII art as plain text or save it as an image file for easy sharing and integration.

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.

Getting Started

Before we begin, make sure you have one of recent versions of Python installed on your computer.

Installation

python -m pip install aksharify

Usage

from aksharify import AksharArt
from aksharify.image import Image
from aksharify.distributions import Linear
from aksharify.outputs import SVG
image = Image("images\julia1.png")
image.set_dim(200)
image.show()
lin = Linear("01")
lin.show()
art = AksharArt(image, lin)
art.aksharify(show=True)
config = SVG()
config.file_name = "art"
config.bold = True
art.export(config)

For examples from user community, please refer to the primepatel.github.io/aksharify

Roadmap

  • NumberiFy
  • Predifined order of characters
  • Getting images from URL
  • EmojiFy

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such a wonderful place to learn, be inspired, and create. Any contributions you make are appreciated greatly.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Prime Patel - @primepatel - primespatel@gmail.com

Project Link: https://github.com/primepatel/aksharify

(back to top)

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

aksharify-0.2.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aksharify-0.2.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file aksharify-0.2.0.tar.gz.

File metadata

  • Download URL: aksharify-0.2.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.11 Windows/10

File hashes

Hashes for aksharify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 db87e1066d70f6030a3190f9265a41979a324c6d1ac8b96b0e240238a4b06c8e
MD5 e3fec2ca0a4dd18e65875580ad111a73
BLAKE2b-256 1f2084f57cbdf63a559589a8be3a67771086fd9cfb5d259b4cfac6fe9ff64c54

See more details on using hashes here.

File details

Details for the file aksharify-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aksharify-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.11 Windows/10

File hashes

Hashes for aksharify-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c58326a90bcc286f3c358b0271e3df3963a89853d8f5fead2f689b2e8927b43
MD5 88773a8d6946b6e4b960019af408765b
BLAKE2b-256 1d7e791db686944c73ef4900d9246045feb5338c6ceb89dedd0c1c6f7b896245

See more details on using hashes here.

Supported by

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