Visit the library from @pranavbaburaj/img repository. A python library to display images in the terminal. With colloboration with @pranavbaburaj.
The package can be installed via pip
pip install terminal-imgThe 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()img <file or url>
image: The PIL imagesize(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24
filename: The name of the file containing the imagesize(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24
url: The url of the imagesize(Optional[Tuple]) : The size of the image to be displayed. Default: 24, 24
A python library to display images in the terminal. With colloboration with @pranavbaburaj ❤
