Skip to content

Getting Started

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

Installation

The recommended way to install Aksharify is via the python package manager, pip. Open your terminal or command prompt and run the following command:

python -m pip install aksharify

This command will automatically download + install Aksharify and its dependencies.

Windows-specific Dependency

If you are using Aksharify on a Windows system, you will need to install an additional dependency. Follow these steps:

Why are there Windows specific dependencies?

Aksharify uses cairosvg package in order to export output into .png format. Cairosvg has annoying dependency problem because of cairocffi which is not built for windows. So windows users supposed to add the additional dependency as explained here 1. This is quite long procedure instead we can use a quicker solution which is by installing from an unofficial repository here. You can choose whichever method that suits you better. For quicker solution (i.e. manually installing required binaries1) follow the instuctions below.

Install pipwin using pip:

python -m pip install pipwin

To install binary

pipwin install cairocffi

We are ready to use aksharify and creating awesome Ascii art.

Dear Aksharify Users,

For an even better and interactive experience, we highly recommend using Aksharify in the Notebook Environment! 📓✨

Happy Aksharifying! 🌟

Quick Starter

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.resize(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