Skip to content

Kokonico/pre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre

preview images, gifs, and videos within the terminal

Dependencies

Crates:

Build/Install

cargo build --release

note: to use the command anywhere in the terminal, add the binary to your path, most of the time it will be in target/release/

Usage

pre <file path>

Supported Formats

  • Images: PNG, JPG, BMP, WEBP, etc.
  • GIFs: Animated playback
  • Videos: MP4, MKV, AVI, MOV, WEBM, etc. (requires ffmpeg)

Flags

Flag Description
--fit-height scale by terminal height
--stretch stretch to fill terminal
--no-color disable colors
--invert invert brightness
--loop loop playback
--simple use simple character set
--blocks use block characters (░▒▓█)
--fps <n> override frame rate
--width <n> set output width
--height <n> set output height
--no-audio disable audio for videos
--brightness <f> adjust brightness (default: 1.0)
--contrast <f> adjust contrast (default: 1.0)
--help, -h show help

note: the image will be scaled by width if no flags are provided.

Controls

  • Ctrl+C - stop playback

About

preview images within the terminal!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages