Skip to main content

Img

Display Images in your terminal with python

Installation

The package can be installed via pip

pip install terminal-img

Quick Start

The library is really simple to get started with. Here's is an example of how you display an image

from image import DrawImage

image = DrawImage.from_file("image.png")
image.draw_image()

You can also use a url if you dont have the file locally stored

image = DrawImage.from_url("url")
image.draw_image()

The library can also be used with PIL images

from PIL import Image
from image import DrawImage

img = DrawImage(Image.open("img.png"))
img.draw_image()

CLI

img <file or url>

Methods

image.DrawImage

  • image: The PIL image
  • size(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24

image.DrawImage.from_file

  • filename: The name of the file containing the image
  • size(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24

image.DrawImage.from_url

  • url : The url of the image
  • size(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24

Special thanks to @AnonymouX47 ❤

Metadata

Release files for terminal-img 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminal-img 0.0.3
File Size Uploaded Provenance Actions
terminal-img-0.0.3.tar.gz 5.2 kB Without provenance Details for terminal-img-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for terminal-img 0.0.3
File Interpreter ABI Platform Actions
terminal_img-0.0.3-py3-none-any.whl Python 3 none any Details for terminal_img-0.0.3-py3-none-any.whl

Total release size: 11.3 kB

Release files / terminal-img-0.0.3.tar.gz

Download URL terminal-img-0.0.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c5379bf4b8d17e668de381dc3a67b35787e1bdb035b303403065ac32be729569
BLAKE2b-256 checksum
How to use checksums
17c35641de45b75ff808469fdaa1c79e5cc30f8f335d1b11ee2048c736b38306
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

Release files / terminal_img-0.0.3-py3-none-any.whl

Download URL terminal_img-0.0.3-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b2446bd45383f9c84ff51028ad99248fc59cb04b78295d9a8999bb3db079473
BLAKE2b-256 checksum
How to use checksums
40fbac69d1a1256ec32f1917e342522ca04a586e994e65054fd8af46a391d6dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Security for terminal-img 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page