Having looked at some ORF samples on www.rawsamples.ch, it seems that big-endian and little-endian files are indeed both output by different camera, and also that some cameras (compacts, it seems) use 'IIRS' magic rather than 'IIRO'. I've updated the patch to reflect this, and attached it here.
Also, the PDF link in the initial submission points to documentation for the X3F file format; that was supposed to go in another report. Whoops. I've been unable to find any actual documentation of the file format; the sample files were the best I could do. Adam Buchbinder
Author: Adam Buchbinder <adam.buchbin...@gmail.com> Description: Add Olympus ORF support. (Closes: #519305) diff -Naurp file.orig/magic/Magdir/images file/magic/Magdir/images --- file.orig/magic/Magdir/images 2009-02-20 10:43:12.000000000 -0500 +++ file/magic/Magdir/images 2009-11-18 10:17:03.000000000 -0500 @@ -605,3 +605,13 @@ # JPEG 2000 Code Stream Bitmap # From Petr Splichal <pspli...@redhat.com> 0 string \xFF\x4F\xFF\x51\x00 JPEG-2000 Code Stream Bitmap data + +# Type: Olympus ORF raw images. +# URL: http://libopenraw.freedesktop.org/wiki/Olympus_ORF +# From: Adam Buchbinder <adam.buchbin...@gmail.com> +0 string MMOR Olympus ORF raw image data, big-endian +!:mime image/x-olympus-orf +0 string IIRO Olympus ORF raw image data, little-endian +!:mime image/x-olympus-orf +0 string IIRS Olympus ORF raw image data, little-endian +!:mime image/x-olympus-orf