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 hashes)

Uploaded Source

Built Distribution

ascimage-0.0.1-py3-none-any.whl (4.8 kB 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