by octoploid · 9y ago · 0 comments
function img { for image in "$@"; do convert -thumbnail $(tput cols) "$image" txt:- | awk -F '[)(,]' '!/^#/{gsub(/ /,"");printf"\033[48;2;"$8";"$9";"$10"m "}'; echo -e "\e[0;0m"; done ;}
Example: http://i.imgur.com/d5RzWAC.pngWith that, I see this: http://i.imgur.com/uqCHAmF.png
[1] https://git.gnome.org/browse/vte/tree/perf/img.sh?h=vte-0-36