python library and cli tool to convert images and videos to ascii
pip install asciipy-any
additional examples can be found in /examples/
asciipy [input_file] [output_file] [width] (optional, default=80)
Command line examples:
-
image with default size:
asciipy test.png ascii.png
-
video with default size:
asciipy test.mp4 ascii.mp4
-
image with custom size:
asciipy test.png ascii.png 160
-
video with custom size:
asciipy test.mp4 ascii.mp4 160
- note: these libraries can be manually installed instead.
youtube_dl
can be used instead ofyt-dlp
asciipy-any[full]
will installrequests
andyt-dlp
to enable downloading from urls and youtube videos.asciipy-any[url]
will installrequests
to enable downloading from urls.asciipy-any[youtube]
will installyt-dlp
to enable downloading youtube videos.
- you can find our documentation here: https://asciipy-any.readthedocs.io/
image to ascii cli
from asciipy import ImageConverter
import sys
img = ImageConverter()
img.convert(sys.argv[1], './ascii.png')
print(f"{sys.argv[1]} converted and written to ./ascii.png")
proper gif support(mostly done, but still to buggy to be considered finished)- ability to write output as html
- ability to convert vectors (not sure how i could even go about this)
-
or my guilded server (i'm often not online here)