Skip to content

swayimg: build with exiv2 for EXIF support - #63184

Open
pankaspe wants to merge 1 commit into
void-linux:masterfrom
pankaspe:swayimg-exiv2
Open

pankaspe wants to merge 1 commit into
void-linux:masterfrom
pankaspe:swayimg-exiv2

Conversation

@pankaspe

Copy link
Copy Markdown

swayimg reads EXIF through exiv2 (meson.build: dependency('exiv2', required: get_option('exif'))), but the template lists libexif-devel, so the auto feature finds nothing and the package is built without EXIF: ldd /usr/bin/swayimg shows no libexiv2, portrait photos from a camera are shown sideways even with swayimg.exif_orientation = true, and the {meta.Exif.*} fields of the text overlay are empty.

This replaces libexif-devel with exiv2-devel and sets -D exif=enabled, so a missing exiv2 fails the build instead of silently dropping EXIF again.

Testing the changes

  • I tested the changes in this PR: YES. Portrait JPEGs (EXIF Rotate 270 CW) are upright in the viewer and in the gallery; the binary links libexiv2.so.28.

Local build testing

  • I built this PR locally for my native architecture, (x86_64-glibc)

The change was prepared with an AI assistant (Claude) and built and tested by me.

🤖 Generated with Claude Code

swayimg reads EXIF through exiv2 (meson option 'exif'), not libexif, so
the package was built without EXIF: images were not rotated by their
EXIF orientation and the EXIF fields of the info overlay were empty.
Enable the feature explicitly so a missing exiv2 fails the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dogknowsnx

Copy link
Copy Markdown
Contributor

Maintainer ping @voidbert

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

Successfully merging this pull request may close these issues.

2 participants