python-ascii_magic:将图片转换为ASCII艺术

时间:2021-05-21 13:35:16
【文件属性】:
文件名称:python-ascii_magic:将图片转换为ASCII艺术
文件大小:1.17MB
文件格式:ZIP
更新时间:2021-05-21 13:35:16
Python ASCII魔术 将图像转换为用于终端和HTML的ASCII艺术的Python软件包。 多亏了它与Windows终端兼容。 基于代码。 安装方式 pip install ascii_magic 基本用法 import ascii_magic output = ascii_magic . from_image_file ( 'images/moon.jpg' ) ascii_magic . to_terminal ( output ) 结果: 可用功能 from_image_file() 将图像文件转换为ASCII艺术作品。 ascii_magic . from_image_file ( path : str , columns : int = 120 , width_ratio : float = 2.2 , char : str = None ,
【文件预览】:
python-ascii_magic-master
----example_lion_ascii.png(121KB)
----ascii_magic()
--------__init__.py(6KB)
----example_moon.png(42KB)
----example_lion_blue.png(162KB)
----LICENCE(1KB)
----README.md(6KB)
----example_lion_html.png(164KB)
----tests()
--------test_quick_test.py(57B)
--------test_to_html_file.py(183B)
--------test_from_file.py(158B)
--------test_back.py(155B)
--------test_from_clipboard.py(138B)
--------test_html.py(322B)
--------test_html-terminal.py(339B)
--------chicken_transparent.png(364KB)
--------kid.jpg(84KB)
--------test_transparent_png.py(134B)
--------context.py(123B)
--------test_from_url.py(166B)
--------test_ascii.py(149B)
--------moon.jpg(32KB)
--------test_wrong_url.py(289B)
--------lion.jpg(227KB)
--------test_from_image.py(199B)
----.gitignore(52B)

网友评论