swaywm / swaylock

Screen locker for Wayland
MIT License
853 stars 201 forks source link

Correct for image orientation when loading image (fix from swaybg) #361

Closed drnlm closed 5 months ago

drnlm commented 5 months ago

JPEG and other image formats may include an EXIF orientation tag which indicates in what orientation (rotation and mirroring) the image should be displayed. libgdk-pixbuf does not correct for this when loading an image, but provides a function to apply the transform after the fact, which this commit uses.

Fix pulled from swaybg - see https://github.com/swaywm/swaybg/pull/68 for the original patch

Closes: #357

rieje commented 5 months ago

Nice! Time for a release?