danielgatis / imgcat

Display images and gifs in your terminal.
MIT License
199 stars 11 forks source link

Add interpolation choice flag #7

Closed carbocation closed 1 year ago

carbocation commented 1 year ago

This PR adds a nearest-neighbor interpolation option that can be specified in the command line. Note that I had to pull in additional code to allow for parsing the filename as a positional argument in any order, but that could be removed if we can assume that flags must precede the file name if flags are passed.

Note that although the inspiration for this PR is #6 , this PR doesn't fully resolve that issue—I still get spurious color in some grayscale images, but it improves the display in most of them.