The right way to print pictures in the terminal with PowerShell
NOTE: Make sure you have ImageMagick installed.
Clone the repository into your project directory, then call the src/pixure.ps1
file:
$ "path/to/picture.png" | pixur
You can redirect output to a file:
$ "path/to/picture.png" | pixur > image.pxl
... and view the saved image with cat
:
$ cat image.pxl
Because Pixur uses ANSI escape codes, not every terminal fully supports Pixur (yet). Indeed, as of September 2018, only the famous Windows Console, once notorious for poor color and Unicode character support fully supports Pixur.
Terminal | Full Support? |
---|---|
Windows Console | ✔ Yes! |
Alacritty | ❌ no |
Cmder | ❌ no |
ConEmu | ❌ no |
Hyper | ❌ no |
Terminus | ❌ no |
As of 2018, the glorious Windows Console seems to support full RGB color: