Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2658

Add magic numbers of Olympus ORF Files

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.18
    • Fix Version/s: 2.0
    • Component/s: detector
    • Labels:
      None

      Description

      For Olympus Raw Files (.ORF) there aren't any magic numbers specified in the tika-mimetypes.xml file. When I adjust the xml to look like following it works:

      <mime-type type="image/x-raw-olympus">
        <_comment>Olympus raw image</_comment>
        <magic priority="50">
          <match offset="0" type="string" value="\x49\x49\x52\x4F"/>
        </magic>
        <glob pattern="*.orf"/>
      </mime-type>
      

      I tested this with files from my Olympus E-PL7, my Olympus E-M5 Mark II and some Olympus E-M1 Mark II raw files I found on the internet (the most recent camera). The content type changes from octet stream to image/x-raw-olympus as expected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wowselim Selim Dincer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: