All Projects → pranavbaburaj → img

pranavbaburaj / img

Licence: MIT license
A python library to display images in the terminal

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to img

Lilliput
Resize images and animated GIFs in Go
Stars: ✭ 1,690 (+2972.73%)
Mutual labels:  png, jpeg, images
Selene
A C++17 image representation, processing and I/O library.
Stars: ✭ 266 (+383.64%)
Mutual labels:  png, jpeg, images
octodex
GitHub's Octocats.
Stars: ✭ 64 (+16.36%)
Mutual labels:  png, jpeg, images
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (+3445.45%)
Mutual labels:  png, jpeg, images
Density Converter
A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush.
Stars: ✭ 222 (+303.64%)
Mutual labels:  png, jpeg
Imageprocessor
📷 A fluent wrapper around System.Drawing for the processing of image files.
Stars: ✭ 2,452 (+4358.18%)
Mutual labels:  png, jpeg
video thumbnail
This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
Stars: ✭ 159 (+189.09%)
Mutual labels:  png, jpeg
node-pdftocairo
📃 Node.js wrapper for pdftocairo - PDF to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo
Stars: ✭ 17 (-69.09%)
Mutual labels:  png, jpeg
Azpainter
Full color painting software for Unix-like systems for illustration drawing. This is un-official little fixed repository for package maintainers of image editor AzPainter (based on "mlib" toolkit). Official repository - http://azsky2.html.xdomain.jp/arc/download.html
Stars: ✭ 179 (+225.45%)
Mutual labels:  png, jpeg
wordpress-plugin
Speed up your WordPress website. Optimize your JPEG and PNG images automatically with TinyPNG.
Stars: ✭ 78 (+41.82%)
Mutual labels:  png, images
zImageOptimizer
Simple image optimizer for JPEG, PNG and GIF images on Linux, MacOS and FreeBSD.
Stars: ✭ 108 (+96.36%)
Mutual labels:  png, jpeg
Gulp Image
Optimize PNG, JPEG, GIF, SVG images with gulp task.
Stars: ✭ 213 (+287.27%)
Mutual labels:  png, jpeg
Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (+265.45%)
Mutual labels:  png, jpeg
alfred-imagemin
Alfred workflow - Minify images with Imagemin
Stars: ✭ 29 (-47.27%)
Mutual labels:  png, jpeg
Pappl
PAPPL - Printer Application Framework
Stars: ✭ 192 (+249.09%)
Mutual labels:  png, jpeg
HEIF
Mac OS X: Convert any image to HEIF/HEIC format
Stars: ✭ 58 (+5.45%)
Mutual labels:  png, jpeg
dom-to-image-more
Generates an image from a DOM node using HTML5 canvas
Stars: ✭ 231 (+320%)
Mutual labels:  png, jpeg
gfxprim
Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.
Stars: ✭ 32 (-41.82%)
Mutual labels:  png, jpeg
StbSharp
C# port of the famous C framework
Stars: ✭ 62 (+12.73%)
Mutual labels:  png, jpeg
pixl
🚀 Lightweight image processing library in C++11
Stars: ✭ 31 (-43.64%)
Mutual labels:  png, jpeg

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].