[ 
https://issues.apache.org/jira/browse/TIKA-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109447#comment-18109447
 ] 

Hudson commented on TIKA-4851:
------------------------------

SUCCESS: Integrated in Jenkins build Tika ยป tika-main-jdk17 #1595 (See 
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk17/1595/])
TIKA-4851: RawTiffParser marks only the largest preview as THUMBNAIL (#3091) 
(github: 
[https://github.com/apache/tika/commit/66d318a7a91252d42c48ad3e50b7b18d3ad68c3e])
* (edit) CHANGES.txt
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-image-module/src/main/java/org/apache/tika/parser/image/RawTiffParser.java
* (edit) 
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-image-module/src/test/java/org/apache/tika/parser/image/RawTiffParserTest.java


> RawTiffParser: mark only the largest JPEG preview as THUMBNAIL
> --------------------------------------------------------------
>
>                 Key: TIKA-4851
>                 URL: https://issues.apache.org/jira/browse/TIKA-4851
>             Project: Tika
>          Issue Type: New Feature
>          Components: parser
>            Reporter: Dominik Schmidt
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 4.1.0
>
>
> RawTiffParser (TIKA-4824) emits every JPEG preview found in the IFD chain and 
> SubIFDs as an embedded document with tk:embedded-resource-type=THUMBNAIL, in 
> IFD walk order. A NEF typically carries a 160x120 thumbnail in IFD0 and a 
> full-size preview in a SubIFD, DNG and CR2 similar, so the first THUMBNAIL is 
> usually the smallest one. A client that wants the representative image has to 
> parse the dimensions of every preview and pick the largest, which is a 
> format-specific special case again; every other parser that emits THUMBNAIL 
> emits exactly one.
> Proposal:
> - Only the largest preview (by JPEG byte length, or by the IFD's 
> ImageWidth/ImageLength when present) is marked THUMBNAIL and emitted first.
> - The remaining previews are still extracted, marked INLINE (they are 
> renderings of the same image, not attachments), keeping the current 
> thumbnail_N generated names or switching the smaller ones to an image_N 
> prefix.
> Motivation for both tickets: a generic "first THUMBNAIL is the preview" rule 
> across all formats in a downstream consumer (OpenCloud's Tika extractor).



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

Reply via email to