Skip to content
panekjPublic
forked from moshen/gotermimg

About

Display images and play gifs in your 256 color terminal!

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

gotermimg

.github/workflows/main.yml

Update of github.com/moshen/gotermimg

Installation

Install using go install:

go install github.com/panekj/gotermimg/cmd/gotermimg@latest

Installs the gotermimg command line application.

Usage

Usage: gotermimg [-u] [-x=n] [-y=n] [IMAGEFILE]
IMAGEFILE - png or jpg.
Image data can be piped to stdin instead of providing IMAGEFILE.

If neither -x or -y are provided, and the image is larger than your current
terminal, it will be automatically scaled to fit.

-u=false: Enable UTF8 output
-x=0: Scale to n*2 columns wide in ANSI mode, n columns wide in UTF8 mode.
      When -x=0 (the default), aspect ratio is maintained.
      For example if -y is provided without -x, width is scaled to
      maintain aspect ratio
-y=0: Scale to n rows high in ANSI mode, n/2 rows high in UTF8 mode.
      When -y=0 (the default), aspect ratio is maintained.
      For example if -x is provided without -y, height is scaled to
      maintain aspect ratio

gotermimg on a png with transparency

gotermimg on an animated gif with transparency

While the render speed on some slower terminals might not look very good, urxvt looks amazing (click through for HQ).

gotermimg on urxvt

Author

Colin Kennedy

Libraries used

About

Display images and play gifs in your 256 color terminal!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址