-
Notifications
You must be signed in to change notification settings - Fork 66
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
Bad interaction with lolcat #108
Comments
Interesting challenge :-) There were several big changes between 1.6 and 1.12, so I'll have to fiddle with it a bit and look at the interactions with lolcat before I can give a good answer. Thinking out loud -- you may be able to get part of the way there by specifying |
Quick workaround: |
This was actually caused by lolcat not handling inverted colors properly. I committed a fix to minimize the runs of inverted colors when possible. |
Thx to @hpjansson for hinting at the --treshold option! c.f. hpjansson/chafa#108
Downstream tools don't always handle inverted colors correctly, and it doesn't really cost us much to minimize the resulting artifacts. Fixes #108 (GitHub).
chafa --colors 16 --size $(tput cols)x18 --color-space din99d --fill braille --work 3 -- /usr/local/share/icons/keine-panik.svg | lolcat
with chafa 1.6.0-1:and with 1.12.1-1:

now fixed it with

chafa --colors 2 --size $(tput cols)x18 --color-space din99d -- /usr/local/share/icons/keine-panik.svg | lolcat
to be like this:which is not bad, but still, i liked the white lettering fill better 😄
Maybe you have an idea what changed about the conversion algorithm and whether there could be an option to get something similiar to the original effect.
This is the SVG used:

The text was updated successfully, but these errors were encountered: