Package: aksharify
AksharifyAbout The ModuleAksharify 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 FeaturesConvert 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 AsciiArtASCII 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.MotivationThe 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 StartedBefore we begin, make sure you have one of recent versions of Python installed on your computer.Installationpython-mpipinstallaksharifyUsagefromaksharifyimportAksharArtfromaksharify.imageimportImagefromaksharify.distributionsimportLinearfromaksharify.outputsimportSVGimage=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=Trueart.export(config)For examples from user community, please refer to theprimepatel.github.io/aksharifyRoadmapNumberiFyPredifined order of charactersGetting images from URLEmojiFySee theopen issuesfor a full list of proposed features (and known issues).ContributingContributions are what make the open source community such a wonderful place to learn, be inspired, and create. Any contributions you make areappreciated 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!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.ContactPrime Patel -@primepatel-primespatel@gmail.comProject Link:https://github.com/primepatel/aksharify(back to top)