hoa-le / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

Support Olympus ORF RAW format #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to parse an ORF RAW image
2. Iterate through the directories (you will get an IFD0 directory)
3. Try to iterate through the tags (you will find no tags)

What is the expected output? What do you see instead?
The tags in the ORF-RAW file. I only get an IDF0 directory, but with no tags 
inside.

What version of the product are you using? On what operating system?
2.5.0-RC3, Eclipse Java, Android

Please provide any additional information below.
Sample image: http://dl.dropbox.com/u/15496646/PA180834.ORF
(Can not be attached, 11 MB)

Original issue reported on code.google.com by torsten....@googlemail.com on 7 May 2012 at 12:32

GoogleCodeExporter commented 9 years ago
The library's support for many camera RAW files needs revisiting.

Thanks for providing the first ORF sample image.  I'll include this in the 
sample gallery, and will use it when it comes time to address this.

The file has been uploaded as 'Olympus Pen E-PL1.orf': 
http://code.google.com/p/metadata-extractor/source/detail?r=6a13f72a2329da4b6fa2
8af555a173562b13fbd7&repo=sample-images

Original comment by drewnoakes on 18 May 2012 at 10:24

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 18 May 2012 at 11:08

GoogleCodeExporter commented 9 years ago
Attempts to read ORF Exif data result in:

> "Invalid Exif start - should have 0x2A at offset 8 in Exif header"

Identify these files, and ensure that this check is relaxed or adjusted for ORF 
files only.

Original comment by drewnoakes on 16 Oct 2012 at 3:46

GoogleCodeExporter commented 9 years ago
Relates to http://code.google.com/p/metadata-extractor/issues/detail?id=35

Original comment by drewnoakes on 16 Oct 2012 at 4:26

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 16 Oct 2012 at 4:27

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 16 Oct 2012 at 4:32

GoogleCodeExporter commented 9 years ago
Version 2.6.3 no longer refuses to process ORF files.

However I'm leaving this ticket open as I'd still like to add special support 
for ORF-specific tags, and this will require some refactoring.

Currently the ExifReader class is really a TiffReader. I believe it should be 
split in two, such that the ExifReader uses an instance of TiffReader, passing 
it the data to process and some metadata describing expected tags, sub-IFD 
definitions, etc.

The different tag definitions could be provided for different RAW formats.

However, the ORF handling in 2.6.3 looks pretty good.  Here's the output for 
Torsten's "Olympus Pen E-PL1.orf" from the sample images:

[Exif IFD0] Unknown tag (0x0100) = 4100
[Exif IFD0] Unknown tag (0x0101) = 3084
[Exif IFD0] Unknown tag (0x0102) = 16
[Exif IFD0] Unknown tag (0x0103) = 1
[Exif IFD0] Unknown tag (0x0106) = 1
[Exif IFD0] Image Description = OLYMPUS DIGITAL CAMERA         
[Exif IFD0] Make = OLYMPUS IMAGING CORP.  
[Exif IFD0] Model = E-PL1           
[Exif IFD0] Unknown tag (0x0111) = 1449472
[Exif IFD0] Orientation = Top, left side (Horizontal / normal)
[Exif IFD0] Unknown tag (0x0115) = 1
[Exif IFD0] Unknown tag (0x0116) = 3084
[Exif IFD0] Unknown tag (0x0117) = 10776021
[Exif IFD0] X Resolution = 350 dots per inch
[Exif IFD0] Y Resolution = 350 dots per inch
[Exif IFD0] Unknown tag (0x011c) = 1
[Exif IFD0] Resolution Unit = Inch
[Exif IFD0] Software = Version 1.2                    
[Exif IFD0] Date/Time = 2011:10:18 15:36:36
[Exif IFD0] Unknown tag (0xc4a5) = [528 bytes]
[Exif SubIFD] Exposure Time = 1/60 sec
[Exif SubIFD] F-Number = F3.9
[Exif SubIFD] Exposure Program = Program normal
[Exif SubIFD] ISO Speed Ratings = 200
[Exif SubIFD] Exif Version = 2.21
[Exif SubIFD] Date/Time Original = 2011:10:18 15:36:36
[Exif SubIFD] Date/Time Digitized = 2011:10:18 15:36:36
[Exif SubIFD] Exposure Bias Value = 0 EV
[Exif SubIFD] Max Aperture Value = F3.5
[Exif SubIFD] Metering Mode = Multi-segment
[Exif SubIFD] White Balance = Unknown
[Exif SubIFD] Flash = Flash fired, auto
[Exif SubIFD] Focal Length = 18.0 mm
[Exif SubIFD] User Comment = 
[Exif SubIFD] FlashPix Version = 1.00
[Exif SubIFD] Color Space = sRGB
[Exif SubIFD] File Source = Digital Still Camera (DSC)
[Exif SubIFD] CFA Pattern = 2 0 2 0 0 1 1 2
[Exif SubIFD] Custom Rendered = Normal process
[Exif SubIFD] Exposure Mode = Auto exposure
[Exif SubIFD] White Balance Mode = Auto white balance
[Exif SubIFD] Digital Zoom Ratio = 1
[Exif SubIFD] Scene Capture Type = Standard
[Exif SubIFD] Gain Control = Low gain up
[Exif SubIFD] Contrast = None
[Exif SubIFD] Saturation = None
[Exif SubIFD] Sharpness = None
[Olympus Makernote] Camera Settings = [459008 ints]
ERROR: Invalid TIFF tag format code: 0

There are a few unknown tags at the start, and the Olympus Makernote section is 
not decoded.

The error at the end also indicates a violation of the TIFF format within this 
file, which would have caused processing of the directory to abort at that 
point. That warrants some further investigation too.

Original comment by drewnoakes on 28 Oct 2012 at 6:56

GoogleCodeExporter commented 9 years ago
This issue has been migrated along with the project to GitHub:

https://github.com/drewnoakes/metadata-extractor/issues/18

Original comment by drewnoakes on 19 Nov 2014 at 6:10