Image thumnail print on terminal using text
Project description
dotshow
We generate image to text on terminal
It is made for linux server to show image.
When we want to see image on python linux server,
we have to save image or use jupyter notebook.
To overcome those problem, I made this package.
To see thumnail of the image, we can use cv2.imshow in local environment.
However, it is impossible for server ssh terminal.
It is simple thumnail printer using python.
Example
We can print images like down below.
How to use
Git cloning on your repository
pip install dotshow
import package on python
load our own package
from dotshow import loadshow
dotshow(<img-path>)
cv2 version
import cv2
from dotshow import dotshow
img = cv2.imread(<img-path>)
dotshow(img) # run the code
PIL Image version
import numpy as np
from PIL import Image
from dotshow import dotshow
img = np.array(Image.open(<img-path>))
dotshow(img) # run the code
Parameters
loadshow(
gray = True[default / bool]
size = 7 [default / 0 ~ 10]
)
dotshow(
gray = True[default]
size = 7 [default / 0 ~ 10]
)
gray - if your image is not interpretable, give gray parater False
size - if your image is too big in your terminal, reduce size using this parameter
when you use low size parameter, image will undersampled too much
and it will decrease image quality.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dotshow-1.2.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file dotshow-1.2.0.tar.gz
.
File metadata
- Download URL: dotshow-1.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2608e8b66f89363db6091c34653644c323d603f81de10c9e705110dbbb4cd6ce |
|
MD5 | a26d2df9e16df2bc9ab086ce8269361a |
|
BLAKE2b-256 | 0501e75b9a6f627d421caf464d729b5cd537ef8d793e3b92793e920dfd9e5677 |
File details
Details for the file dotshow-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: dotshow-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2a9cbd4e7021eee0783377e964659f7271de0bac282d4a2262b39ad2d77bfc |
|
MD5 | b4b790cc06409a5735cb660f22090b2a |
|
BLAKE2b-256 | 2f4d7915f26d87e488968826976df0849ed5db50e04b659006c996c9cddf4bfd |