Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sixel preview doesn't work after upgrading chafa to version 1.14 #1582

Closed
Steven79203 opened this issue Jan 20, 2024 · 4 comments
Closed

Sixel preview doesn't work after upgrading chafa to version 1.14 #1582

Steven79203 opened this issue Jan 20, 2024 · 4 comments

Comments

@Steven79203
Copy link

Just recently I noticed that my the sixel image preview stopped working. Instead of showing the image it just shows a bunch of characters on the preview space. Don't know exactly where is the problem since chafa is capable of showing the image in the terminal if I open it out of the file manager. Other previewers like ctpv also show the same problem. Both compiled and the packaged version that comes with Arch behaves the same way.

screenshot_20-01-2024_08-56-30

Details:
System - Arch Linux
Kernel - 6.7.0-arch3-1
Terminal emulator - foot version: 1.16.2 +pgo +ime +graphemes -assertions
lf version - lf 31-1 Arch package

@joelim-work joelim-work changed the title Image preview stopped working after update Sixel preview doesn't work after upgrading chafa to 1.14 Jan 22, 2024
@joelim-work joelim-work changed the title Sixel preview doesn't work after upgrading chafa to 1.14 Sixel preview doesn't work after upgrading chafa to version 1.14 Jan 22, 2024
@joelim-work
Copy link
Collaborator

joelim-work commented Jan 22, 2024

Starting from version 1.14.0, chafa now disables polite mode by default, which means additional terminal sequences are prepended to the previewer output, causing lf to not treat it as sixel data.

To fix this, please use the --polite on option when using chafa. This is also now included in the wiki example.

I will keep this issue pinned for a while.

@rxmmah
Copy link

rxmmah commented Feb 14, 2024

i am using ctpv as the previewer in lf, i did set sixel true but photos are showing bad.
how can i pass --polite on in my case?

@ormai
Copy link
Contributor

ormai commented Apr 26, 2024

@rxmmah This fork has the fix.

To install

git clone https://github.com/fiplox/ctpv.git -b chafa-fix
cd ctpv
sudo make install

You also need to put set chafasixel in ~/.config/ctpv/config.

@joelim-work
Copy link
Collaborator

I think this has been pinned long enough, and everyone interested is now aware that the issue is actually with chafa/ctpv and not with lf.

Closing now.

@joelim-work joelim-work unpinned this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants