dschmidt opened a new pull request, #3037:
URL: https://github.com/apache/tika/pull/3037

   NEF/NRW raw files embed a camera-generated full-resolution JPEG preview 
(SubIFD0, JPEGInterchangeFormat/-Length), but Tika parses NEF as plain TIFF and 
gives no access to it.
   
   * New `NEFParser` (image module): claims `image/x-raw-nikon`, inherits 
TIFF/EXIF/XMP metadata extraction from `TiffParser`, walks IFD0 plus SubIFDs 
and emits each embedded JPEG preview through the `EmbeddedDocumentExtractor` 
(`image/jpeg`, `THUMBNAIL`, `thumbnail-N.jpg`). Offsets/lengths are 
bounds-checked, the JPEG SOI marker is required, IFD counts are capped. 
Configurable via `"nef-parser": {"extractPreviews": false}`.
   * `image/x-raw-nikon` is now a `sub-class-of image/tiff`, so name+data 
detection resolves NEF to the specific type (data-only detection stays 
`image/tiff`, NEF has no reliable magic).
   * Test file `testNEF.nef` (~2KB) is fully synthetic, generated to mirror the 
IFD layout of real D3000/D80 files (no camera data).
   
   Tested: unit tests, detection tests, full image-module suite, plus 
end-to-end against real D80/D3000 NEFs (preview 3872x2592 extracted, /rmeta and 
/unpack deliver it).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to