Skip to content

Display images in the terminal

License

Notifications You must be signed in to change notification settings

sindresorhus/terminal-image-cli

terminal-image-cli

Display images in the terminal

Works in any terminal that supports colors. Supports animated GIFs.

In iTerm, Kitty, WezTerm, and other terminals with graphics support, the image will be displayed in full resolution. In other terminals, it will be rendered using ANSI block characters.

Install

npm install --global terminal-image-cli

Usage

$ image --help

  Usage
    $ image <image>
    $ cat <image> | image

  Examples
    $ image unicorn.jpg
    $ cat unicorn.jpg | image

Related