Skip to main content

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


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

Uploaded Source

Built Distribution

dotshow-1.2.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dotshow-1.2.1.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

Hashes for dotshow-1.2.1.tar.gz
Algorithm Hash digest
SHA256 808d539b0e0789e5c4cd159a7f9cca80d162d4710b974f3be39ca96f364fd7fa
MD5 4355bc0ee63b76385c07d10dbe70df1d
BLAKE2b-256 c35a6a14ce37afb6ecd021796646bc36d6f193b7336b3281e68078c496be6977

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dotshow-1.2.1-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

Hashes for dotshow-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99fb9c5b92f9c84306a6a4199c066dd00cd3587b63acaf4e0a1268f2dddee890
MD5 6ad0bab87efa3b2f95cc521bf4c1eb7d
BLAKE2b-256 b5fa8cb5b212be8b0fc824a2a9c9fda4d1921b05784a2001d6f28e8ee4730dea

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