Code Monkey home page Code Monkey logo

tview's Introduction

T-View: Open images inside the terminal!

T-View is an image viewer, that can load local files as well as web URL.

It is proudly powered by Terminal-kit.

First, install it globally (recommended): npm install -g tview.

Then, usage is: tview <file-path | web URL> [url2] [...] [option1] [option2] [...]

Options:

  • --move , -m : interactively move the image around
  • --scale , -s : scale relative to the terminal size (e.g.: 1 fits the terminal)
  • --help , -h : display the help

Examples:

  • tview some-image.jpg
  • tview some-image.jpg another-image.jpg
  • tview https://upload.wikimedia.org/wikipedia/commons/1/1e/Stonehenge.jpg
  • tview -m https://upload.wikimedia.org/wikipedia/commons/1/1e/Stonehenge.jpg
  • tview -m -s 3 https://upload.wikimedia.org/wikipedia/commons/1/1e/Stonehenge.jpg

If your terminal supports true colors, this would produce something like this:

True color example

If your terminal doesn't support true colors, the closest color in the available palette is used. Example with a 256 colors terminal:

256 colors example

tview's People

Contributors

cronvel avatar

Stargazers

Jesús Rubio avatar

Watchers

James Cloos avatar  avatar  avatar

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.