-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Images appear garbled in terminal.app on macOS #483
Comments
The limitation here is that MacOS terminal app supports only 256 colors - not truecolor. It is possible to support image rendering with a 256 color palette, but we will need support from term-image to implement that. The feature request is open with term-image here: AnonymouX47/term-image#90 In the meantime I recommend using iterm2 on MacOS. Tagging @AnonymouX47 |
Are you launching the tui like this: Alternatively, you can set the |
Tried your command & also adding image_format = "kitty" into config file. |
OK, so what's going on there is that your terminal is misinterpreting command sequences as text data. Possibilities:
|
Hello here! Firstly, I should apologize for not responding since I got pinged. It was actually intentional as I didn't want to make any promises I would end up breaking but rather planned to respond with the feature implemented. As earlier implied, I have now implemented indexed-color (256-color) support in AnonymouX47/term-image#109 (please, take note of the admonition there). @nathnp, I don't know what installation method you used for pip install git+https://github.com/AnonymouX47/term-image.git@indexed-color or its equivalent within the same environment as you have Thank you very much. 😃 |
@AnonymouX47 is the indexed color support reliant on any terminal queries? I have disabled term-image terminal queries in the toot tui integration. I expect I'll have to provide an option flag to control indexed color mode usage. |
Not at all.
Yeah, I noticed. You actually don't have much to loose.
Yes, sure. The most straight-forward method (which is the best in the case of toot) would be: # Use indexed-color
BlockImage.set_render_method("INDEXED")
# Use direct-color (default)
BlockImage.set_render_method("DIRECT") and you only have to call this once on the class. |
Added support for indexed color image rendering; fixes #483
Images viewed in macOS terminal.app appear garbled when using
toot tui
.This does not occur when using Kitty on macOS. Or on my Fedora 40 Linux machine.
toot version: toot v0.43.0
macOS version: 14.4.1
The text was updated successfully, but these errors were encountered: