Skip to content

Instantly share code, notes, and snippets.

@even4void
Created September 10, 2024 18:18
Show Gist options
  • Save even4void/507490c7395d770b83df99184ff14821 to your computer and use it in GitHub Desktop.
Save even4void/507490c7395d770b83df99184ff14821 to your computer and use it in GitHub Desktop.
Cat for image via sixel graphic protocol
#!/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