ascimage-0.0.1
توضیحات
imageprint with asciii code.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ascimage-0.0.1 |
| نام | ascimage |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | fallnjump |
| ایمیل نویسنده | tfjsm.app@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ascimage/ |
| مجوز | LICENSE |
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
نحوه نصب
نصب پکیج whl ascimage-0.0.1:
pip install ascimage-0.0.1.whl
نصب پکیج tar.gz ascimage-0.0.1:
pip install ascimage-0.0.1.tar.gz