Created
September 10, 2024 18:18
-
-
Save even4void/507490c7395d770b83df99184ff14821 to your computer and use it in GitHub Desktop.
Cat for image via sixel graphic protocol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ "$1" == "-g" ]]; then | |
GEOMETRY="$2" | |
shift 2 | |
fi | |
for f in "$@"; do | |
convert "$f" -geometry ${GEOMETRY:=800x480} sixel:- | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment