Closed sudo-burger closed 7 months ago
Thanks for filing the issue! Found the cause, fix will be on master and in the next release.
Awesome. Thank you!
Thanks for fixing this! Any plan to cut a new release?
Yes, very soon now - I wanted to close out #184 first, but it looks like it might not be an endianness/crash issue on our end, so will punt on that one unless my latest finding is contradicted.
@junegunn And it's done!
Thanks! I can confirm that the problem's fixed.
Using iTerm2 3.50beta22 on MacOS Ventura 13.6.6/Intel. $ chafa --version Chafa version 1.14.0
Loaders: GIF JPEG PNG QOI SVG TIFF WebP XWD Features: mmx sse4.1 popcnt avx2 Applying: mmx sse4.1 popcnt avx2 [...]
Chafa doesn't seem to detect the iTerm capabilities, resulting in pixelated output. Setting '--format iterm' gives the expected, good quality output.
A few environment variables; based on a quick read of the code, chafa should be able to detect it is running in iTerm by reading a couple of these:
$ env|grep TERM|sort COLORTERM=truecolor ITERM_PROFILE=Default LC_TERMINAL=iTerm2 LC_TERMINAL_VERSION=3.5.0beta22 TERM=xterm-256color TERMINFO_DIRS=/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo TERM_FEATURES=T3CwLrMSc7UUw9Ts3BFGsSyHNoSxF TERM_PROGRAM=iTerm.app TERM_PROGRAM_VERSION=3.5.0beta22
Output with no --format flag: $ chafa Downloads/Lenna_(test_image).png
Output with '--format iterm': $ chafa --format iterm Downloads/Lenna_(test_image).png