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.

Example

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

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.

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.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dotshow-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 8f4878f199149b4a8fd5334c604a1c167e584ab1adc5c7a9e2f71014176b2b24
MD5 cd2d9b4668c4e297f57259738d0ba27d
BLAKE2b-256 fa65e1a7855c29c12eec3db2d0d689cf007ea33e6f3e344bed5c7b1a58e37408

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dotshow-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd88e84694d3b1356e307bd43854c10a41fb190f39f35f2b3299a2382daeab9
MD5 680625e73d634d3c274e5d0cbda09f2c
BLAKE2b-256 08fe525c150f9f0f0cf2a145d064b170d7a254fcd1bbbe46fa530d8b65c74c9a

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