Giter Club home page Giter Club logo

kitty-image-viewer-simplified's Introduction

kitty-image-viewer-simplified

This is a Python script that makes it easier to display multiple images at once in kitty terminal. The program works on linux (haven't tested on MacOS)

Screenshots

Single image usage screenshot Multiple images usage screenshot Multiple images behind text usage screenshot Single image behind text terminal max usage screenshot

Dependencies

  • kitty
  • python3

Installation

You can either just run the script like this python3 kitty-image-viewer.py /path/to/image.jpg or move/copy it to /usr/local/bin/ (I called the shortcut img)

git clone https://github.com/Aadniz/kitty-image-viewer-simplified.git
cd kitty-image-viewer-simplified
sudo cp kitty-image-viewer.py /usr/local/bin/img
sudo chmod +x /usr/local/bin/img

Usage

Show images

  • img /path/to/image.jpg
  • img /path/to/image.png /path/to/other/image.jpeg
  • img /path/to/images*

Show image(s) at terminal maximum resolution:

  • img -f /path/to/image.jpg
  • img --full /path/to/image.jpg

Show image(s) at maximum resolution:

  • img -m /path/to/image.jpg
  • img --max /path/to/image.jpg

Show image(s) underneeth text (z-index=-1)

  • img -b /path/to/image.jpg
  • img --behind /path/to/image.jpg
  • img -m -b /path/to/image.jpg

Clear images shown on screen:

  • img -c
  • img --clear

Help Menu (this page):

  • img -h
  • img --help

NOTES

Crappy code, bunch of if, else uhhh. It works! and it works like it should (I believe)

kitty-image-viewer-simplified's People

Contributors

aadniz avatar ddybing avatar

Stargazers

 avatar  avatar Gabriel Dunne avatar Adam Wagner avatar

Watchers

 avatar

Forkers

ddybing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.