Project

General

Profile

Bug #675

Exif extraction fails under certain cicumstances

Added by gary cohen almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
exif
Start date:
22 Jan 2010
Due date:
% Done:

100%

Estimated time:

Description

I have at least one JPEG that has valid exif data that can properly be retrieved using Photoshop and ImageMagick, but not via Exiv2.

From IM:

Exif:ApertureValue: 4643856/1000000
Exif:Contrast: 0
Exif:CustomRendered: 0
Exif:DateTime: 2008:01:01 09:13:08
Exif:DateTimeDigitized: 2008:01:01 09:13:08
Exif:DateTimeOriginal: 2008:01:01 09:13:08
Exif:DigitalZoomRatio: 153/100
Exif:ExifOffset: 92
Exif:ExifVersion: 0221
Exif:ExposureBiasValue: 0/6
Exif:ExposureMode: 0
Exif:ExposureProgram: 2
Exif:ExposureTime: 1/20
Exif:FileSource: 3
Exif:FNumber: 5/1
Exif:FocalLength: 620/10
Exif:FocalLengthIn35mmFilm: 93
Exif:GainControl: 0
Exif:LightSource: 0
Exif:MaxApertureValue: 47/10
Exif:MeteringMode: 5
Exif:NativeDigest: 36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;EF67B16A3EDE8A548147CB9F33323736
Exif:Orientation: 1
Exif:PixelXDimension: 2784
Exif:PixelYDimension: 1848
Exif:Saturation: 0
Exif:SceneCaptureType: 0
Exif:SceneType: 1
Exif:SensingMethod: 2
Exif:Sharpness: 0
Exif:ShutterSpeedValue: 4321928/1000000
Exif:Software: Ver.1.00
Exif:SubjectDistanceRange: 0
Exif:SubSecTime: 08
Exif:SubSecTimeDigitized: 08
Exif:SubSecTimeOriginal: 08
Exif:WhiteBalance: 0

From Exiv2:

File size : 263292 Bytes
MIME type : image/jpeg
Image size : 2784 x 1848
Camera make :
Camera model :
Image timestamp : 2008:01:01 09:13:08
Image number :
Exposure time :
Aperture :
Exposure bias :
Flash :
Flash bias :
Focal length :
Subject distance:
ISO speed :
Exposure mode :
Metering mode :
Macro mode :
Image quality :
Exif Resolution :
White balance :
Thumbnail : None
Copyright :
Exif comment :


Files

2_14bit_DX_Lossless.JPG (257 KB) 2_14bit_DX_Lossless.JPG gary cohen, 22 Jan 2010 13:55

History

#1

Updated by Andreas Huggel almost 12 years ago

  • Status changed from New to Rejected
  • % Done changed from 0 to 100

Most of the metadata in this image is XMP data, not Exif data. Photoshop and apparently also IM convert it on the fly or at least don't clearly show the type of metadata. The standard summary output of exiv2 on the other hand looks only at Exif data, which is why it doesn't show much. This is what I get with the -pa option:

$ exiv2 -pa 2_14bit_DX_Lossless.JPG 
Exif.Image.Orientation                       Short       1  top, left
Exif.Image.Software                          Ascii       9  Ver.1.00
Exif.Image.DateTime                          Ascii      20  2008:01:01 09:13:08
Exif.Image.ExifTag                           Long        1  92Most 
Exif.Photo.DateTimeOriginal                  Ascii      20  2008:01:01 09:13:08
Exif.Photo.DateTimeDigitized                 Ascii      20  2008:01:01 09:13:08
Exif.Photo.SubSecTime                        Ascii       3  08
Exif.Photo.SubSecTimeOriginal                Ascii       3  08
Exif.Photo.SubSecTimeDigitized               Ascii       3  08
Xmp.tiff.Make                                XmpText    17  NIKON CORPORATION
Xmp.tiff.Model                               XmpText    10  NIKON D700
Xmp.tiff.Orientation                         XmpText     1  top, left
Xmp.tiff.ImageWidth                          XmpText     4  2784
Xmp.tiff.ImageLength                         XmpText     4  1848
Xmp.tiff.PhotometricInterpretation           XmpText     1  2
Xmp.tiff.SamplesPerPixel                     XmpText     1  3
Xmp.tiff.NativeDigest                        XmpText   134  256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;D2771B411D962325352BA0F5F229AFAE
Xmp.tiff.BitsPerSample                       XmpSeq      3  16, 16, 16
Xmp.exif.ExifVersion                         XmpText     4  2.21
Xmp.exif.ExposureTime                        XmpText     4  1/20
Xmp.exif.ShutterSpeedValue                   XmpText    15  1/20 s
Xmp.exif.FNumber                             XmpText     3  F5
Xmp.exif.ApertureValue                       XmpText    15  F5
Xmp.exif.ExposureProgram                     XmpText     1  Auto
Xmp.exif.DateTimeOriginal                    XmpText    28  2008-01-01T09:13:08.08-08:00
Xmp.exif.DateTimeDigitized                   XmpText    28  2008-01-01T09:13:08.08-08:00
Xmp.exif.ExposureBiasValue                   XmpText     3  0 EV
Xmp.exif.MaxApertureValue                    XmpText     5  47/10
Xmp.exif.MeteringMode                        XmpText     1  Multi-segment
Xmp.exif.LightSource                         XmpText     1  Unknown
Xmp.exif.FocalLength                         XmpText     6  62.0 mm
Xmp.exif.SensingMethod                       XmpText     1  One-chip color area
Xmp.exif.FileSource                          XmpText     1  Digital still camera
Xmp.exif.SceneType                           XmpText     1  Directly photographed
Xmp.exif.FocalLengthIn35mmFilm               XmpText     2  93
Xmp.exif.CustomRendered                      XmpText     1  Normal process
Xmp.exif.ExposureMode                        XmpText     1  Auto
Xmp.exif.WhiteBalance                        XmpText     1  Auto
Xmp.exif.SceneCaptureType                    XmpText     1  Standard
Xmp.exif.GainControl                         XmpText     1  None
Xmp.exif.Contrast                            XmpText     1  Normal
Xmp.exif.Saturation                          XmpText     1  Normal
Xmp.exif.Sharpness                           XmpText     1  Normal
Xmp.exif.SubjectDistanceRange                XmpText     1  Unknown
Xmp.exif.DigitalZoomRatio                    XmpText     7  153/100
Xmp.exif.PixelXDimension                     XmpText     4  2784
Xmp.exif.PixelYDimension                     XmpText     4  1848
Xmp.exif.NativeDigest                        XmpText   414  36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;EF67B16A3EDE8A548147CB9F33323736
Xmp.exif.ISOSpeedRatings                     XmpSeq      1  200
Xmp.exif.Flash                               XmpText     0  type="Struct" 
Xmp.exif.Flash/exif:Fired                    XmpText     5  False
Xmp.exif.Flash/exif:Return                   XmpText     1  0
Xmp.exif.Flash/exif:Mode                     XmpText     1  0
Xmp.exif.Flash/exif:Function                 XmpText     5  False
Xmp.exif.Flash/exif:RedEyeMode               XmpText     5  False
Xmp.xmp.ModifyDate                           XmpText    28  2008-01-01T09:13:08.08-08:00
Xmp.xmp.CreateDate                           XmpText    28  2008-01-01T09:13:08.08-08:00
Xmp.xmp.CreatorTool                          XmpText     8  Ver.1.00
Xmp.aux.SerialNumber                         XmpText     7  1234567
Xmp.aux.LensInfo                             XmpText    26  180/10 1350/10 35/10 56/10
Xmp.aux.Lens                                 XmpText    23  18.0-135.0 mm f/3.5-5.6
Xmp.aux.ImageNumber                          XmpText     2  13
Xmp.crs.AlreadyApplied                       XmpText     5  False
Xmp.photoshop.ColorMode                      XmpText     1  3
Xmp.photoshop.ICCProfile                     XmpText     0  

(closing, not a bug)

Also available in: Atom PDF