dschmidt opened a new pull request, #3099: URL: https://github.com/apache/tika/pull/3099
Raw camera formats were detected by extension only; a stream without a name was `image/tiff`, parsed by the plain TIFF parser, and the previews of TIKA-4824 never appeared. `RawTiffDetector` tells the TIFF-based formats apart by their image directory, in this order: a `DNGVersion` tag means DNG; a vendor `Compression` code names Nikon, Sony, Pentax or Samsung (ExifTool's rule); otherwise a CFA or LinearRaw image plus the `Make` tag catches the uncompressed variants, while a TIFF a camera wrote stays a TIFF. It reads a bounded prefix into memory, walks the IFD chain and SubIFDs there, and resets the stream. RAF, RW2, MRW and the other ORF byte orders get magic entries. `image/x-raw-samsung` did not exist, it is added and handled by `RawTiffParser`. No SRW, RAF, RW2 or MRW samples are in the repo, so those are covered by signature bytes only; if someone has files they can share, I will add them. https://issues.apache.org/jira/browse/TIKA-4861 -- 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]
