Skip to content

feat(tiff): Support GPS fields, and other metadata enhancements#5050

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-gps
Open

feat(tiff): Support GPS fields, and other metadata enhancements#5050
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-gps

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 18, 2026

Most visible change: The TIFF reader and writer now correctly handle GPS tags.

Fixes #5049

But along the way, and to get it completely right, a fairly extensive refactoring of our TIFF tag handling was needed. The libtiff behavior around different tags is extremely convoluted, and there were a bunch of cases we either didn't handle correctly, or were dropping on the floor. So there are also some other non-GPS tags that we missed all along but now read properly.

Note that the support for separate IFDs for GPS tags is only supported via the API in libtiff 4.2 and newer, so this is disabled when bulding against older libtiff versions. (Our support of old libtiff versions extends extraordinarily far back in time.)

Most visible change: The TIFF reader and writer now correctly handle
GPS tags.

Fixes 5049

But along the way, and to get it completely right, a fairly extensive
refactoring of our TIFF tag handling was needed. The libtiff behavior
around different tags is extremely convoluted, and there were a bunch
of cases we either didn't handle correctly, or were dropping on the
floor. So there are also some other non-GPS tags that we missed all
along but now read properly.

Note that the support for separate IFDs for GPS tags is only supported
via the API in libtiff 4.2 and newer, so this is disabled when bulding
against older libtiff versions. (Our support of old libtiff versions
extends extraordinarily far back in time.)

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Collaborator Author

lgritz commented Feb 19, 2026

The failures on the wheel builds are unrelated to this PR and are happening in main. We are investigating that separately, and it should not inhibit review and acceptance of this PR.

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.

bug: OpenImageIO is not able to write GPS tags to tiff files

1 participant

Comments