Skip to main content

imageprint with asciii code.

Project description

# Install You can use pip to install ascimage.

pip install ascimage

# running

## on bash

imprint <filename> [-s size-of-asciiart] [-z zoom x y]

examples)

If you want to output the image to the terminal, put it as follows:

imprint hoge.jpg

If you want to shift the center position of the image by x = 80pixel, y = -20pixel and output up to W32xH28 characters at 4.6x magnification, enter as follows.

imprint hoge.jpg -s 32 28 -z 4.6 80 -20

If you want to enlarge the image to the same size, set zoom = 0.

## on python

import ascimage

ascimage.imprint(imgfile,[targetsizeWH],[zoomxy],[valrange])

  • targetsizeWH: - put size-of-asciiart as tuple.

  • zoomxy: - put zoom x y as tuple.

-valrange:
  • (vmin,vmax): vmin to vmax are expressed on a color scale.

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

ascimage-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

ascimage-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ascimage-0.0.1.tar.gz.

File metadata

  • Download URL: ascimage-0.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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ascimage-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9d9c4b006eb37acb5a821201e070d1dd39b71f7ab1c5b7c1e8f87ea709be0eea
MD5 41a61c37449c051ae9d740c3b8436a28
BLAKE2b-256 a502db64aca302d0153d3911f030826fadb5f02fe8c8d84b28ee497e82cf3aa6

See more details on using hashes here.

File details

Details for the file ascimage-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ascimage-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ascimage-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c5c48f896c37030d940a3e0872cbcc96bd3282ba6bf6fdc809f3ad46906d16c
MD5 eb497d2cc30ae09befce0c84d9589c21
BLAKE2b-256 db2c8f0601299fb9eedcf5bc4232658d56fe4a4c3c421c8385d8eed7abfbec52

See more details on using hashes here.

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