Dominik Schmidt created TIKA-4824:
-------------------------------------

             Summary: Extract embedded JPEG previews from Nikon NEF raw images
                 Key: TIKA-4824
                 URL: https://issues.apache.org/jira/browse/TIKA-4824
             Project: Tika
          Issue Type: New Feature
            Reporter: Dominik Schmidt


NEF/NRW files are TIFF-based and embed a camera-generated full-resolution JPEG 
preview (SubIFD0, JPEGInterchangeFormat/-Length). Tika currently has no access 
to it: image/x-raw-nikon is glob-only and not a sub-class of image/tiff, no 
parser claims the type, and nothing extracts the preview bytes. For consumers 
that cannot decode raw sensor data, the embedded JPEG is the only practical way 
to render a NEF (analogous to TIKA-4801 for audio cover art).

Proposal:

- New NEFParser in tika-parser-image-module: TIFF metadata via TiffParser, 
walks IFD0 + SubIFDs and emits each JPEG preview through the 
EmbeddedDocumentExtractor (image/jpeg, THUMBNAIL); configurable via 
"nef-parser": {"extractPreviews": false}
- Add sub-class-of image/tiff to image/x-raw-nikon so name+data detection 
resolves NEF
- Synthetic ~2KB test NEF mirroring the real IFD layout, unit and detection 
tests

PR to follow.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to