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

Allow setting background color for transparent images #93

Open
jpmvferreira opened this issue May 3, 2022 · 1 comment
Open

Allow setting background color for transparent images #93

jpmvferreira opened this issue May 3, 2022 · 1 comment

Comments

@jpmvferreira
Copy link

In #10 it was proposed to add a transparent background to transparent pictures.
This is very cool, unless when the image has more or less the same color has the background.
Currently viu has a -t, --transparent flag, which claims to 'Display transparent image with transparent background', however, this is the default case (at least for me, and I've just re-built viu today) which means this flag isn't doing anything.

Would it be possible to obtain the checker board like pattern for a transparent picture (either by default or with a custom flag) and/or set a custom background color when viewing transparent images (maybe with a custom flag and supply it with a given color)?

@i30817
Copy link

i30817 commented Jul 25, 2022

Ah, -t does something now, or at least in terminals that aren't kitty, like xterm.

Without it, the image transparent parts show in checkboard pattern.

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