Awesome
pxl
pxl is a little hack to display images in the terminal.
Installation
You will need to have Go installed and configured in your path. Your terminal must have xterm-256color mode enabled.
go get github.com/ichinaski/pxl
Usage
pxl filename
Close the image with <ESC>
.
Disclaimer
You may want to squint your eyes or take a few steps backwards when looking at the output.
Examples
image | pxl |
---|---|
<img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/gh.png" height="250"> | <img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/gh.pxl.png" height="250"> |
<img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/batman.jpg" height="250"> | <img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/batman.pxl.png" height="250"> |
<img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/elvis.jpg" height="250"> | <img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/elvis.pxl.png" height="250"> |
<img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/gd.jpg" height="250"> | <img src="https://raw.githubusercontent.com/ichinaski/pxl/master/img/gd.pxl.png" height="250"> |
License
This software is distributed under the BSD-style license found in the LICENSE file.