[
https://issues.apache.org/jira/browse/IMAGING-371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17820304#comment-17820304
]
Stefan Oltmann commented on IMAGING-371:
----------------------------------------
I solved it this way in my fork. Feel free to copy the solution.
https://github.com/Ashampoo/kim/blob/80028c814de583737f3a95599745d12ca5051df8/src/commonMain/kotlin/com/ashampoo/kim/format/tiff/TiffReader.kt#L290-L294
> GPSVersionID gets skipped
> -------------------------
>
> Key: IMAGING-371
> URL: https://issues.apache.org/jira/browse/IMAGING-371
> Project: Commons Imaging
> Issue Type: Bug
> Reporter: Stefan Oltmann
> Priority: Major
>
> This check for tag == 0 is wrong for the GPS directory (Tag -3).
> The GPSVersionID has indeed the tag 0x0000 and this is correct.
> https://github.com/apache/commons-imaging/blob/65c6e1bc48925448ba938c4cdc184f1fcfb9f811/src/main/java/org/apache/commons/imaging/formats/tiff/TiffReader.java#L332
--
This message was sent by Atlassian Jira
(v8.20.10#820010)