Commit 5c2039e
authored
* [TIKA-4776] Add regression test for Apple maker note LONG8 tags
metadata-extractor 2.21.0 (already bumped on main) decodes the LONG8
and SLONG8 TIFF format codes, so the Apple maker note tags written as
LONG8 reach Tika now. The fixture is the still half of a real Apple
Live Photo (iPhone 15 Pro, iOS 18.5) from the MIT licensed osxphotos
test suite; the test pins the content identifier and the Live Photo ID
(maker note tag 0x0017), which was dropped with metadata-extractor
2.20.0.
* [TIKA-4776] Shrink the fixture to the real EXIF payload
Replace the full 1379953 byte iPhone photo with a 3203 byte HEIC that
repackages the unmodified EXIF item (including the Apple maker note
with the LONG8 tag 0x0017) into a minimal container. The picture item
data is replaced by filler bytes; the asserted values still come from
the original EXIF bytes.
1 parent b2f69cc commit 5c2039e
2 files changed
Lines changed: 26 additions & 0 deletions
File tree
- tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-image-module/src/test
- java/org/apache/tika/parser/image
- resources/test-documents
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
60 | 86 | | |
0 commit comments