Update README.md

This commit is contained in:
Celogeek 2021-12-11 17:42:27 +01:00 committed by GitHub
parent c399c86070
commit 803225280c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,38 @@
# 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 -o imgcat
```
## Usage
```
./imgcat -url "https://images.pexels.com/photos/2558605/pexels-photo-2558605.jpeg?cs=srgb&dl=pexels-anel-rossouw-2558605.jpg&fm=jpg" -height 25
```
<img width="1069" alt="Capture décran 2021-12-11 à 17 40 55" src="https://user-images.githubusercontent.com/65178/145684510-39617c22-5818-4573-896c-7e0e6915db91.png">
## Help
```
# imgcat -h
Usage of imgcat:
-height int
maximum height in lines
-url string
url of the jpg
```