derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.52k stars 159 forks source link

--image-bg fails on wallpaper #575

Open philzin opened 3 years ago

philzin commented 3 years ago

I'm currently on version 3.6.1-1 on Arch and some of the wallpaper setting options fail to properly set the image background color. The option --bg-center is the only one that properly sets the color according to the argument of -B. All the other options `--bg-fill, --bg-scale, --bg-tile' result in a black image background.

avlec commented 3 years ago

Can you show the context in which this is being used? As the --bg-tile and --bg-fill commands shouldn't have any visible background left to colour.

philzin commented 3 years ago

I was trying to use images that had transparent parts, like a hexagonal grid where only the edges are filled.

avlec commented 3 years ago

Do you have an example image that I could use for testing?

philzin commented 3 years ago

I just had the issue with this image. The command I ran was feh --no-fehbg --bg-fill grid-png-transparent-pic-18.png -B white and my desktop looks like this, where the image in the background is my previous wallpaper.

avlec commented 3 years ago

Sorry to pester you more, but it's helpful to know your output of feh -v and specifically if your setup is using Xinerama. (because of this line https://github.com/derf/feh/blob/master/src/wallpaper.c#L494) But the soultion to your problem should hopefully be quite simple.

philzin commented 3 years ago

here's the output: feh version 3.6.3 Compile-time switches: curl exif inotify help stat64 verscmp xinerama my setup is using Xinerama, although I just tested without it and rather than using my old wallpaper it seems to default to black as the background. To test without Xinerama, I inverted the colors so that the grid is white instead and no matter what I pass to -B, I get the grid with a black background, whereas again with --bg-center it respects the color I choose