asciipy
python library and cli tool to convert images and videos to ascii
Example output:
additional examples can be found in /examples/
Command line usage:
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
Optional dependencies (URL and Youtube support):
- note: these libraries can be manually installed instead.
youtube_dlcan be used instead ofyt-dlp asciipy-any[full]will installrequestsandyt-dlpto enable downloading from urls and youtube videos.asciipy-any[url]will installrequeststo enable downloading from urls.asciipy-any[youtube]will installyt-dlpto enable downloading youtube videos.
Python usage:
- you can find our documentation here: https://asciipy-any.readthedocs.io/
Python examples:
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")
Planned features:
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)
need help?
-
or my guilded server (i'm often not online here)
Release files for asciipy-any 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asciipy-any-0.3.0.tar.gz | 22.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asciipy_any-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / asciipy-any-0.3.0.tar.gz
| Download URL | asciipy-any-0.3.0.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14295bc4ee3a6e90742b00a23c53531bd46009d854b12570243f79e674effe45
|
|
BLAKE2b-256 checksum How to use checksums |
d43e16ff4e3e0f6f0e596de9f4cb3e576734b3c1af7dffce377570e7a3af62ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.7
|
Release files / asciipy_any-0.3.0-py3-none-any.whl
| Download URL | asciipy_any-0.3.0-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1d4db58956cc7597731ac6292dbc0b074ab383d794937381685ab612e852829
|
|
BLAKE2b-256 checksum How to use checksums |
d0d80e01eda1b10e01ac9eaea87cf6af5c4374a57eeabe01d1889017e70f1dc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.7
|