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

Issue with image size in previews #1620

Open
giovannilupi opened this issue Mar 2, 2024 · 0 comments
Open

Issue with image size in previews #1620

giovannilupi opened this issue Mar 2, 2024 · 0 comments

Comments

@giovannilupi
Copy link

Hello,

I'm encountering an issue with sixel previews when using chafa. It seems that the size setting is not being applied correctly to images with portrait orientation, resulting in tearing on the current screen. I'm using the following command in my previewer to display images:
command chafa -f sixel --optimize=9 -s "$2x$3" --animate off --polite on "$1"

One example of an image causing issues is the following:
Screenshot 2024-03-02 at 16 10 38

Interestingly, removing the -f sixel option resolves the issue:
Screenshot 2024-03-02 at 16 12 25

Alternatively, substituting $3 with a low enough magic number, we can display the image without disrupting the current screen.

I'm testing this on iTerm2. However, on the same machine, I experience a different issue in the VSCode terminal. The images displayed there appear to be smaller than the available space for some reason. Also in this case, removing the -f sixel, the size of the image seems to be adjusted correctly.

Has anyone else encountered a similar issue?

Cheers

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

1 participant