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

ASF GitHub Bot commented on TIKA-4775:
--------------------------------------

tballison commented on PR #2946:
URL: https://github.com/apache/tika/pull/2946#issuecomment-4945605435

   Doing some more work on this. Then I'll have my agent fix the above. Thank 
you!
   
   Any recommendations/preferences on dealing with fractions vs decimals in 
image metadata?
   
   │               Tika key                │ from XMP (verbatim   │    from 
binary EXIF (metadata-extractor     │
     │                                       │      fraction)       │           
Rational.doubleValue())           │
     
├───────────────────────────────────────┼──────────────────────┼─────────────────────────────────────────────┤
     │ exif:ExposureTime                     │ 10/600               │ 0.0166… 
(e.g. 1.0E-6 for 1/1000000)         │
     │ (TIFF.EXPOSURE_TIME)                  │                      │           
                                  │
     
├───────────────────────────────────────┼──────────────────────┼─────────────────────────────────────────────┤
     │ exif:FNumber (TIFF.F_NUMBER)          │ 32/10                │ 3.2       
                                  │
     
├───────────────────────────────────────┼──────────────────────┼─────────────────────────────────────────────┤
     │ exif:FocalLength (TIFF.FOCAL_LENGTH)  │ 249/10               │ 4.6       
                                  │
     
├───────────────────────────────────────┼──────────────────────┼─────────────────────────────────────────────┤
     │ tiff:XResolution                      │ 720000/10000         │ 300.0     
                                  │
     │ (TIFF.RESOLUTION_HORIZONTAL)          │                      │           
                                  │
     
└───────────────────────────────────────┴──────────────────────┴─────────────────────────────────────────────┘
   




> Experiment unifying xmp parsing in 4.x
> --------------------------------------
>
>                 Key: TIKA-4775
>                 URL: https://issues.apache.org/jira/browse/TIKA-4775
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Minor
>
> We parse xmp at least 3 different ways currently, and we're basing what keys 
> we're looking for based on the container file mime type. We should normalize 
> xmp parsing.



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

Reply via email to