Open Astrantia opened 3 years ago
The sixel format supports 1-bit transparency, but ImageMagick does not know how to do that yet. The best we can do until that bug is fixed is to detect the terminal's background color and use that. It's not a bad solution as it means we also get antialiased fonts and drop shadows. Does your terminal not report the correct background color? Or, are you using an image or transparent background in your terminal?
The sixel format supports 1-bit transparency, but ImageMagick does not know how to do that yet. The best we can do until that bug is fixed is to detect the terminal's background color and use that. It's not a bad solution as it means we also get antialiased fonts and drop shadows. Does your terminal not report the correct background color? Or, are you using an image or transparent background in your terminal?
lsix is correctly detecting my terminal's background color, but i've set my terminal itself to be 70% transparent, so the background color ends up being a solid color. from what i gather from your reply, it is impossible to get a no-color background currently with imagemagick?
from what i gather from your reply, it is impossible to get a no-color background currently with imagemagick?
Correct. And I'm not even sure that it would look good if it did work. You would lose antialiasing, so it may look grotty.
lsix is correctly detecting my terminal's background color, but i've set my terminal itself to be 70% transparent, so the background color ends up being a solid color.
That makes sense. Can you please send a screenshot of the problem and let me know which terminal you're using? While there's no fix at the moment, I'd like to keep this bug open as a reminder that sixel transparency needs further work and to try some experiments to see if it is worth pursuing.
If you could also run lsix > opaque.six
and attach that file to this bug, I'd appreciate it. I will see if I can make it transparent and how it looks when I do. Thanks!
I just ran into the same problem. Here is how it looks for me.
Screenshot:
hello and thanks for the project.
is it possible to set the montaged gallery background to transparent color? I tried setting
montage "${onerow[@]}" $imoptions -background none gif:- | convert - -background 'rgba(0,0,0,0)' sixel:-
but it doesn't seem to work. Does sixel not support viewing transparent background or what could be wrong?