Skip to content

Transform images to their representation with ASCII characters.

Notifications You must be signed in to change notification settings

gabriel-dahan/img-to-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImgToAscii

Install and Import the module :

Installing the module :

~ git clone https://github.com/gabriel-dahan/img-to-ascii/
~ cd img-to-ascii/

# Linux / MacOS
~ python3 -m pip install -U .

# Windows 
~ py -3 -m pip install -U .

Consider using the --user parameter if you're not a root/admin user.

Importing the module :

import imgtoascii

Output ASCII to a text file

img = imgtoascii.Img('example.png')
img.to_ascii(out_file = "example.ascii.txt")

Print ASCII

img = imgtoascii.Img('example.png')
text = img.to_ascii()
print(text)

About

Transform images to their representation with ASCII characters.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages