Skip to main content

Image thumnail print on terminal using text

Project description

imgdot

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 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.

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>)
thumshow(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>))
thumshow(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.

Example

We can print images like down below.
before after before after

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

dotshow-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

dotshow-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file dotshow-0.0.2.tar.gz.

File metadata

  • Download URL: dotshow-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 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 dotshow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d6a84e01dd3ca704cc0ceb13ffc6efc5222d6c61a728f95b71ff747e696a2a0b
MD5 208a3140404635e81d76ba80bb61973a
BLAKE2b-256 d449cc91267a179ce92b2a8d5809b98c3e4f7e3a4e47d4ea9c59abfc082db9e4

See more details on using hashes here.

File details

Details for the file dotshow-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dotshow-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 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 dotshow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92917f9447259498efd69063d11a2e002ee7c7d4bc9056b9a47de7d9cc24ebff
MD5 6f156bf05fcab60096f713267828b66a
BLAKE2b-256 c740a1ce683efdc3abc656ba541203f7f405591b56c701ff2c0acb1df2833831

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