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

Produces small glitches in output with some images #52

Closed
Safari77 opened this issue Mar 3, 2021 · 3 comments
Closed

Produces small glitches in output with some images #52

Safari77 opened this issue Mar 3, 2021 · 3 comments

Comments

@Safari77
Copy link

Safari77 commented Mar 3, 2021

-w option seems to affect the position and frequency of the glitches.
Tried chafa 1.6.0 and latest git.

Input:
carmen-in
Output:
carmen-out

@hpjansson
Copy link
Owner

Thanks for reporting this. I assume the glitches are the squares in the upper left quadrant containing gradients.

My hunch is that this is due to a Unicode character not handled well by the terminal or maybe your font. Try with --symbols block, --symbols border or --symbols ascii and see if you can make it show up then.

I'd like to figure out exactly what's causing it, but need some more information:

  • What's your terminal software, and which version of it are you using?
  • A dump of the output containing glitches: chafa image.jpg >out. Do cat out to make sure it contains the glitch, then compress out and attach it here along with a screenshot of the image you got from cat out.

Note that when redirecting output, you may have to specify terminal size manually, e.g. with -s 80x50.

@Safari77
Copy link
Author

Safari77 commented Mar 3, 2021

For me the source of the glitches is geometric. tv doesn't produce any glitches.
I have gnome-terminal 3.38.3+vte-0.62.3. Roxterm and alacritty are also broken, but kitty 0.19.3 works ok!

carmen gnome-terminal
carmen.txt.gz

@hpjansson
Copy link
Owner

It's code point U+25FC (black medium square) that's giving you trouble. It has an emoji variant that was introduced in Unicode 6.1.0 (see here).

The text variant is typically the default in the geometric range, but implementations are free to choose emoji based on context and font support. VTE gives me the text variant here, so it's probably down to fonts.

I'll mark the symbol as ambiguous and do the same with the other geometric symbols with emoji variants, like the right- and left-pointing triangles that somehow double as "play buttons".

Let me know if you find any other issues!

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

2 participants