mirror of
https://github.com/celogeek/imgcat.git
synced 2025-05-24 15:52:38 +02:00
672 B
672 B
imgcat
Display a remote image into the terminal.
Build
Install Go Lang from: https://go.dev/
Then build
With make
make
Or directly
go build -trimpath -o ./bin/imgcat ./cmd/imgcat
Usage
./bin/imgcat -url "https://images.pexels.com/photos/2558605/pexels-photo-2558605.jpeg?cs=srgb&dl=pexels-anel-rossouw-2558605.jpg&fm=jpg" -height 25

Help
# imgcat -h
Usage of imgcat:
-height int
maximum height in lines
-url string
url of the jpg