python library and cli tool to convert images and videos to ascii.
Project description
asciipy
python library and cli tool to convert images and videos to ascii
Command line usage:
asciipy [input_file] [output_file] [width] (optional, default=80)
Python usage:
asciipy provides three classes VideoConverter
, ImageConverter
, and BaseConverter
-
BaseConverter: provided for subclassing, and internal use
-
VideoConverter: takes four positional arguments,
input
,output
,width
, andprogress
-
- (str) input: input video to convert
-
- (str) output: destination of the converted video
-
- (int) width: desired width in ascii characters (height is implicit from the aspect ratio of the input)
-
- (bool) progress: if a progress indicator should be printed during conversion
-
ImageConverter: takes three positional arguments,
input
,output
, andwidth
-
- (str) input: input image to convert
-
- (str) output: destination of the converted image
-
- (int) width: desired width in ascii characters (height is implicit from the aspect ratio of the input)
both converter classes implement a .convert()
method, which takes no arguments, to start the conversion
need help?
-
or my guilded server (i'm often not online here)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for asciipy_any-0.1.1a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2836465fc392f36bae08915f49bd206182c8154a8f9b8eca4f17c10147cac686 |
|
MD5 | 6f421d8a0ab296b918e265e52cc3d6de |
|
BLAKE2b-256 | 0df6c23903869663f9111aeeecbbb83794b22af7660aadade16e413ea0238e38 |