Skip to main content

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, and progress

    • (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, and width

    • (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?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asciipy-any-0.1.1a3.tar.gz (2.0 MB view hashes)

Uploaded Source

Built Distribution

asciipy_any-0.1.1a3-py3-none-any.whl (2.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page