Skip to main content

A python terminal image printer

Project description

Termshot is a easy-to-use python image to terminal printer, that allows you to edit already converted images (like copy, paste).

Classes: ANSIMatrix: class that has ansi "pixels", that has been recieved from converter.

Functions: ANSIMatrix.copy(self, region): returns another ANSIMatrix, that contains pixels from copied area of parent image ANSIMatrix.paste(self, region, position): pastes region (ANSIMatrix) to given position. ANSIMatrix.get_img(self): returns ready-to-print string of ansi "pixels". colored(img, rescale, use_double_spaces): converts image from file to colored ANSIMatrix. gray(img, rescale, use_double_spaces, allow_15, debug, inverse): like colored, but returns grayscale ANSIMatrix. dump(matrix, output): dumps matrix to output file. load(file): loads matrix from file.

Github page: None

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

termshot-0.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file termshot-0.1.tar.gz.

File metadata

  • Download URL: termshot-0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.3

File hashes

Hashes for termshot-0.1.tar.gz
Algorithm Hash digest
SHA256 14ff272185cbabcae87eea602d447410570d504ded47119d6103d93687468654
MD5 d18f7a07f489e683b63996a66d437864
BLAKE2b-256 c2855a21b8a446bde3eb73aee91b9901914c41d5149c1e3e7dd518a117f33719

See more details on using hashes here.

Supported by

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