swaywm / swaybg

Wallpaper tool for Wayland compositors
MIT License
490 stars 31 forks source link

Some pictures flipped 180 only with swaybg #65

Closed rieje closed 5 months ago

rieje commented 5 months ago

I have some pictures which when set as wallpaper with swaybg is shown upside down, yet it is shown right side up in both my image gallery app and file manager. Even when I rotate the image by 180 and save it so that it's now upside down in both the gallery app and file manager, swaybg still shows it upside down.

swaybg displays the image correctly when I use imagemagick's -auto-orient on the file

jhead foo.jpg shows the difference between the original and the -auto-oriented file: the former has addditional metadata: Orientation : rotate 180.

swaybg seems to not support this image orientation metadata so cannot display the image "correctly".

emersion commented 5 months ago

Probably need to use something like gdk_pixbuf_apply_embedded_orientation.

emersion commented 5 months ago

Done in https://github.com/swaywm/swaybg/pull/68

rieje commented 4 months ago

Works great, can you bump the version since it's been a while?

emersion commented 4 months ago

Yeah, just released a new version.