Skip to content

[IMAGING-371] Preserve GPSVersionID when reading GPS directories - #569

Open
lilth2 wants to merge 2 commits into
apache:masterfrom
lilth2:pr/imaging-371
Open

lilth2 wants to merge 2 commits into
apache:masterfrom
lilth2:pr/imaging-371

Conversation

@lilth2

@lilth2 lilth2 commented Oct 30, 2026

Copy link
Copy Markdown

[IMAGING-371] Preserve GPSVersionID when reading GPS directories

GPSVersionID has tag 0x0000, but TiffReader currently skips all zero-tag fields, including those in GPS directories. This loses the version field during metadata reading.

Allow tag zero in GPS directories while retaining the existing early filter elsewhere. Existing field-type and offset/length validation still applies.

Regression tests use generated classic TIFF inputs and cover both byte orders, strict and non-strict reading, the public metadata API, exact version bytes, adjacent entries, non-GPS zero tags, invalid GPS counts/offsets, and unknown GPS field types.

Issue: https://issues.apache.org/jira/browse/IMAGING-371

Validation: default mvn passed on the final two-commit branch with OpenJDK 23.0.2 and Maven 3.9.16: 1,277 tests, zero failures, zero errors, seven skipped. Javadoc and the default quality checks passed.

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.

3 participants