Skip to content

Commit

Permalink
Added "ascii_magic__examples/*"
Browse files Browse the repository at this point in the history
  • Loading branch information
gil9red committed Aug 3, 2023
1 parent 5a8a183 commit bd9412d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Binary file added ascii_magic__examples/input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions ascii_magic__examples/print_ascii_string.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__author__ = "ipetrash"


# SOURCE: https://github.com/LeandroBarone/python-ascii_magic


# pip install ascii-magic
from ascii_magic import AsciiArt


file_name = "input.png"
my_art = AsciiArt.from_image(file_name)
print(my_art.to_ascii(columns=40, monochrome=True))
"""
ii
.]EE].
;JXEEXJ;
iqX4444Xqi
`tXg444444gXt`
+CFLdg4444gdLFC+
xuv. >6gEEg6> .vnx
`au` :2442: `ua`
^wXc+////[!^^![////+cXw^
%SX4d44444GLiiLG44444d4XS%
`tEg44EEEEEXn^::^nXEEEEE44gEt`
=fPEEEEEEEEd* *dEEEEEEEEPf=
i6dhhhhhhhhh6a*%ii%*a6hhhhhhhhhd6i
^=^^^^^^^^^^=////////=^^^^^^^^^^=^
"""

0 comments on commit bd9412d

Please sign in to comment.