Display images in the terminal
Project description
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()
Methods
image.DrawImage
image
: The PIL imagesize
(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 imagesize
(Optional[Tuple]
) : The size of the image to be displayed. Default: 24, 24
image.DrawImage.from_url
url
: The url of the imagesize
(Optional[Tuple]
) : The size of the image to be displayed. Default: 24, 24
Special thanks to @AnonymouX47 ❤
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
terminal-img-0.0.2.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for terminal_img-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064e8a0100725f21667ab961bb204eb76f9146da59dc7711e88e546c7bbc198d |
|
MD5 | 9c73b19017167ab016b1462297490b66 |
|
BLAKE2b-256 | 8f7528fc7e853f68030211cf854432eef7d9d4a0b1ba26bf7c60350a351ca86a |