Project

General

Profile

Bug #1334

Version 0.26 is returns unwanted data when the key value is received from RW2 files (Panasonic DMC-GF6 camera)

Added by Anonymous almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
image format
Target version:
Start date:
28 Jan 2018
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Version 0.26 is returns unwanted data when the key value is received from RW2 files.
Version 0.25 works fine!

$ exiv2 -g Exif.Photo.ISOSpeedRatings -Pt ./P1110094.rw2

RW2 IMAGE
160

The first line in output 'RW2 IMAGE' is unwanted data.
I expected to get only the numerical value of ISO.
But, in the first line of output, I get the file type, although it is already known to me.

This bug is only relevant for the Panasonic DMC-GF6 camera for getting any keys values.
If I try to get the value of the key from the RAW file of Canon, then everything works fine!

$ exiv2 -g Exif.Photo.ISOSpeedRatings -Pt ./IMG_0503.CR2

100


Files

P1110094.rw2 (18.4 MB) P1110094.rw2 Anonymous, 28 Jan 2018 12:55

History

#1

Updated by Robin Mills almost 4 years ago

Thanks for reporting this, Alex. The fix is at the beginning of Rw2Image::printStructure() in src/rw2image.cpp:

    void Rw2Image::printStructure(std::ostream& out, PrintStructureOption option, int depth) {
        out << "RW2 IMAGE" << std::endl;
        if (io_->open() != 0) throw Error(9, io_->path(), strError());
        ... 
I'll submit this fix later today. I'm very surprised that this issue was not detected by our test harness and I will also rectify that.

Are you my old buddy Alex Stepanov from Adobe Systems Incorporated in San Jose, California?

#2

Updated by Robin Mills almost 4 years ago

  • Category set to image format
  • Status changed from New to Assigned
  • Assignee set to Robin Mills
  • Target version set to 0.27
  • % Done changed from 0 to 20
  • Estimated time set to 1.00 h
#3

Updated by Anonymous almost 4 years ago

Thanks for the quick response!
Very glad to help! Thanks for the exiv2!
No, I'm not from Adobe Systems Incorporated in San Jose, California.

I'm a new buddy from small resort city Pyatigorsk, Russia :-)

#4

Updated by Robin Mills almost 4 years ago

Thank you for using exiv2.

Your namesake is a very famous engineer. He invented STL: https://en.wikipedia.org/wiki/Alexander_Stepanov He's also an incredibly nice and fun guy. I'm retired now. I had nothing to do with metadata when I worked at Adobe.

I'm always looking for volunteers to contribute to Exiv2. If you'd like to be involved, I'd be delighted to Welcome You to Team Exiv2.

#5

Updated by Anonymous almost 4 years ago

Thanks for a link! It was interesting to read!
Yes, Alexander Stepanov by link in wiki is a very strong programmer and engineer! To me, of course, very far from his success!
The most interesting is that he is my full namesake. I, too, Alexander Alexandrovich Stepanov!

Thank you for the invitation to participate in the Team Exiv2! Only I do not have experience working in similar projects. But, if I can be of any use, I'm ready to help! I think it will be a good practice.

#6

Updated by Robin Mills about 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 20 to 100

I believe this is fixed in Exiv2 v0.27 RC1.

847 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 ~/Downloads/P1110094.rw2 
File name       : /Users/rmills/Downloads/P1110094.rw2
File size       : 19335680 Bytes
MIME type       : image/x-panasonic-rw2
Image size      : 4816 x 3464
Camera make     : Panasonic
Camera model    : DMC-GF6
Image timestamp : 2018:01:23 19:36:42
Image number    : 
Exposure time   : 1/6 s
Aperture        : F5.6
Exposure bias   : 0 EV
Flash           : No, compulsory
Flash bias      : 0
Focal length    : 42.0 mm (35 mm equivalent: 84.0 mm)
Subject distance: 
ISO speed       : 160
Exposure mode   : Aperture priority
Metering mode   : Multi-segment
Macro mode      : Off
Image quality   : Raw
Exif Resolution : 
White balance   : Auto
Thumbnail       : image/jpeg, 2125 Bytes
Copyright       : 
Exif comment    : 

848 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pR ~/Downloads/P1110094.rw2 
RW2 IMAGE
STRUCTURE OF TIFF FILE (II): /Users/rmills/Downloads/P1110094.rw2
 address |    tag                              |      type |    count |    offset | value
      26 | 0x0001 Version                      | UNDEFINED |        4 |           | 0320
      38 | 0x0002 ISOSpeed                     |     SHORT |        1 |           | 4816
      50 | 0x0003 ColorMode                    |     SHORT |        1 |           | 3464
      62 | 0x0004 Quality                      |     SHORT |        1 |           | 8
      74 | 0x0005 WhiteBalance                 |     SHORT |        1 |           | 8
      86 | 0x0006 Sharpening                   |     SHORT |        1 |           | 3456
      98 | 0x0007 Focus                        |     SHORT |        1 |           | 4600
     110 | 0x0008 FlashSetting                 |     SHORT |        1 |           | 1
     122 | 0x0009 GPSStatus                    |     SHORT |        1 |           | 2
     134 | 0x000a 0x000a                       |     SHORT |        1 |           | 12
     146 | 0x000b ProcessingSoftware           |     SHORT |        1 |           | 34316
     158 | 0x000d GPSSpeed                     |     SHORT |        1 |           | 1
     170 | 0x000e GPSTrackRef                  |     SHORT |        1 |           | 4095
     182 | 0x000f ISOSelection                 |     SHORT |        1 |           | 4095
     194 | 0x0010 DataDump                     |     SHORT |        1 |           | 4095
     206 | 0x0017 GPSDestBearingRef            |     SHORT |        1 |           | 160
     218 | 0x0018 GPSDestBearing               |     SHORT |        1 |           | 256
     230 | 0x0019 GPSDestDistanceRef           |     SHORT |        1 |           | 256
     242 | 0x001a GPSDestDistance              |     SHORT |        1 |           | 256
     254 | 0x001b GPSProcessingMethod          | UNDEFINED |       42 |       558 | ..d....................... . .  ...
     266 | 0x001c GPSAreaInformation           |     SHORT |        1 |           | 128
     278 | 0x001d GPSDateStamp                 |     SHORT |        1 |           | 128
     290 | 0x001e GPSDifferential              |     SHORT |        1 |           | 128
     302 | 0x0024                              |     SHORT |        1 |           | 667
     314 | 0x0025                              |     SHORT |        1 |           | 265
     326 | 0x0026                              |     SHORT |        1 |           | 402
     338 | 0x0027                              | UNDEFINED |       58 |       600 | ....P.......w...........p....... ...
     350 | 0x0029                              | UNDEFINED |       36 |       658 | ............................... ...
     362 | 0x002a                              | UNDEFINED |       32 |       694 | ...............................
     374 | 0x002b                              | UNDEFINED |       16 |       726 | ...............
     386 | 0x002c                              | UNDEFINED |       72 |       742 | ............................... ...
     398 | 0x002d                              |     SHORT |        1 |           | 4
     410 | 0x002e                              | UNDEFINED |   262656 |      2048 | ......Exif..II*................ ...
     422 | 0x010f Make                         |     ASCII |       10 |       814 | Panasonic
     434 | 0x0110 Model                        |     ASCII |        8 |       824 | DMC-GF6
     446 | 0x0111 StripOffsets                 |      LONG |        1 |           | 4294967295
     458 | 0x0112 Orientation                  |     SHORT |        1 |           | 1
     470 | 0x0116 RowsPerStrip                 |     SHORT |        1 |           | 3464
     482 | 0x0117 StripByteCounts              |      LONG |        1 |           | 0
     494 | 0x0118                              |      LONG |        1 |           | 264704
     506 | 0x0119                              | UNDEFINED |       32 |       832 | t"......................6...p...
     518 | 0x011a XResolution                  |     SHORT |        1 |           | 2
     530 | 0x011b YResolution                  | UNDEFINED |       64 |       864 | ........g.......y.....H......... ...
     542 | 0x8769 ExifTag                      |      LONG |        1 |           | 928
  STRUCTURE OF TIFF FILE (II): /Users/rmills/Downloads/P1110094.rw2
   address |    tag                              |      type |    count |    offset | value
       930 | 0x829a ExposureTime                 |  RATIONAL |        1 |      1078 | 10/60
       942 | 0x829d FNumber                      |  RATIONAL |        1 |      1086 | 56/10
       954 | 0x8822 ExposureProgram              |     SHORT |        1 |           | 3
       966 | 0x9000 ExifVersion                  | UNDEFINED |        4 |           | 0230
       978 | 0x9003 DateTimeOriginal             |     ASCII |       20 |      1094 | 2018:01:23 19:36:42
       990 | 0x9004 DateTimeDigitized            |     ASCII |       20 |      1114 | 2018:01:23 19:36:42
      1002 | 0x9204 ExposureBiasValue            | SRATIONAL |        1 |      1134 | 0/100
      1014 | 0x9205 MaxApertureValue             |  RATIONAL |        1 |      1142 | 1273/256
      1026 | 0x9207 MeteringMode                 |     SHORT |        1 |           | 5
      1038 | 0x9209 Flash                        |     SHORT |        1 |           | 16
      1050 | 0x920a FocalLength                  |  RATIONAL |        1 |      1150 | 420/10
      1062 | 0xa300 FileSource                   | UNDEFINED |        1 |           | .
  END /Users/rmills/Downloads/P1110094.rw2
END /Users/rmills/Downloads/P1110094.rw2
849 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pa ~/Downloads/P1110094.rw2 
Exif.PanasonicRaw.Version                    Undefined   4  3.20
Exif.PanasonicRaw.SensorWidth                Short       1  4816
Exif.PanasonicRaw.SensorHeight               Short       1  3464
Exif.PanasonicRaw.SensorTopBorder            Short       1  8
Exif.PanasonicRaw.SensorLeftBorder           Short       1  8
Exif.PanasonicRaw.ImageHeight                Short       1  3456
Exif.PanasonicRaw.ImageWidth                 Short       1  4600
Exif.PanasonicRaw.ISOSpeed                   Short       1  160
Exif.PanasonicRaw.WBRedLevel                 Short       1  667
Exif.PanasonicRaw.WBGreenLevel               Short       1  265
Exif.PanasonicRaw.WBBlueLevel                Short       1  402
Exif.PanasonicRaw.PreviewImage               Undefined 262656  (Binary value suppressed)
Exif.PanasonicRaw.Make                       Ascii      10  Panasonic
Exif.PanasonicRaw.Model                      Ascii       8  DMC-GF6
Exif.PanasonicRaw.StripOffsets               Long        1  4294967295
Exif.PanasonicRaw.Orientation                Short       1  top, left
Exif.PanasonicRaw.RowsPerStrip               Short       1  3464
Exif.PanasonicRaw.StripByteCounts            Long        1  0
Exif.PanasonicRaw.RawDataOffset              Long        1  264704
Exif.PanasonicRaw.ExifTag                    Long        1  928
Exif.Photo.ExposureTime                      Rational    1  1/6 s
Exif.Photo.FNumber                           Rational    1  F5.6
Exif.Photo.ExposureProgram                   Short       1  Aperture priority
Exif.Photo.ExifVersion                       Undefined   4  2.30
Exif.Photo.DateTimeOriginal                  Ascii      20  2018:01:23 19:36:42
Exif.Photo.DateTimeDigitized                 Ascii      20  2018:01:23 19:36:42
Exif.Photo.ExposureBiasValue                 SRational   1  0 EV
Exif.Photo.MaxApertureValue                  Rational    1  F5.6
Exif.Photo.MeteringMode                      Short       1  Multi-segment
Exif.Photo.Flash                             Short       1  No, compulsory
Exif.Photo.FocalLength                       Rational    1  42.0 mm
Exif.Photo.FileSource                        Undefined   1  Digital still camera
Exif.Image.Make                              Ascii      10  Panasonic
Exif.Image.Model                             Ascii       8  DMC-GF6
Exif.Image.Orientation                       Short       1  top, left
Exif.Image.XResolution                       Rational    1  180
Exif.Image.YResolution                       Rational    1  180
Exif.Image.ResolutionUnit                    Short       1  inch
Exif.Image.Software                          Ascii      10  Ver.1.2  
Exif.Image.DateTime                          Ascii      20  2018:01:23 19:36:42
Exif.Image.ExifTag                           Long        1  634
Exif.Photo.ISOSpeedRatings                   Short       1  160
Exif.Photo.SensitivityType                   Short       1  1
Exif.Photo.LightSource                       Short       1  Unknown
Exif.Photo.MakerNote                         Undefined 12200  (Binary value suppressed)
Exif.MakerNote.Offset                        Long        1  1148
Exif.MakerNote.ByteOrder                     Ascii       3  II
Exif.Panasonic.Quality                       Short       1  Raw
Exif.Panasonic.FirmwareVersion               Undefined   4  0 1 2 0
Exif.Panasonic.WhiteBalance                  Short       1  Auto
Exif.Panasonic.FocusMode                     Short       1  Manual
Exif.Panasonic.AFMode                        Byte        2  1-area
Exif.Panasonic.ImageStabilization            Short       1  On, Mode 1
Exif.Panasonic.Macro                         Short       1  Off
Exif.Panasonic.ShootingMode                  Short       1  Aperture priority
Exif.Panasonic.Audio                         Short       1  No
Exif.Panasonic.DataDump                      Undefined 8200  (Binary value suppressed)
Exif.Panasonic.FlashBias                     Short       1  0
Exif.Panasonic.InternalSerialNumber          Undefined  16  F921308220191
Exif.Panasonic.ExifVersion                   Undefined   4  4.04
Exif.Panasonic.TimeSincePowerOn              Long        1  00:06:46.67
Exif.Panasonic.BurstMode                     Short       1  Off
Exif.Panasonic.SequenceNumber                Long        1  0
Exif.Panasonic.SelfTimer                     Short       1  Off
Exif.Panasonic.Rotation                      Short       1  Horizontal (normal)
Exif.Panasonic.AFAssistLamp                  Short       1  Enabled but Not Used
Exif.Panasonic.BabyAge1                      Ascii      20  not set
Exif.Panasonic.ConversionLens                Short       1  Off
Exif.Panasonic.TravelDay                     Short       1  not set
Exif.Panasonic.WorldTimeLocation             Short       1  Home
Exif.Panasonic.TextStamp1                    Short       1  Off
Exif.Panasonic.ProgramISO                    Short       1  160
Exif.Panasonic.AdvancedSceneType             Short       1  1
Exif.Panasonic.TextStamp2                    Short       1  Off
Exif.Panasonic.FacesDetected                 Short       1  0
Exif.Panasonic.ColorTempKelvin               Short       1  7500
Exif.Panasonic.BracketSettings               Short       1  No Bracket
Exif.Panasonic.WBAdjustAB                    Short       1  0
Exif.Panasonic.WBAdjustGM                    Short       1  0
Exif.Panasonic.FlashCurtain                  Short       1  n/a
Exif.Panasonic.LongShutterNoiseReduction     Short       1  On
Exif.Panasonic.ImageWidth                    Long        1  4592
Exif.Panasonic.ImageHeight                   Long        1  3448
Exif.Panasonic.AFPointPosition               Rational    2  4294967295/256 4294967295/256
Exif.Panasonic.FaceDetInfo                   Undefined  42  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Exif.Panasonic.LensType                      Ascii      34  LUMIX G VARIO 14-42/F3.5-5.6 II 
Exif.Panasonic.LensSerialNumber              Ascii      14  13GEA0601591
Exif.Panasonic.AccessoryType                 Ascii      34  NO-ACCESSORY
Exif.Panasonic.AccessorySerialNumber         Ascii      14  0000000
Exif.Panasonic.LensFirmwareVersion           Undefined   4  0 1 1 0
Exif.Panasonic.FaceRecInfo                   Undefined 148  (Binary value suppressed)
Exif.Panasonic.Title                         Undefined  64  
Exif.Panasonic.BabyName                      Undefined  64  
Exif.Panasonic.Location                      Undefined  64  
Exif.Panasonic.Country                       Undefined  72  
Exif.Panasonic.State                         Undefined  72  
Exif.Panasonic.City                          Undefined  72  
Exif.Panasonic.Landmark                      Undefined 128  
Exif.Panasonic.IntelligentResolution         Byte        1  Standard
Exif.Panasonic.BurstSheed                    Short       1  0
Exif.Panasonic.IntelligentDRange             Short       1  Standard
Exif.Panasonic.ClearRetouch                  Short       1  Off
Exif.Panasonic.City2                         Undefined  72  
Exif.Panasonic.PhotoStyle                    Short       1  Natural
Exif.Panasonic.ShadingCompensation           Short       1  On
Exif.Panasonic.AccelerometerZ                Short       1  252
Exif.Panasonic.AccelerometerX                Short       1  -12
Exif.Panasonic.AccelerometerY                Short       1  20
Exif.Panasonic.SweepPanoramaDirection        Byte        1  Off
Exif.Panasonic.PanoramaFieldOfView           Short       1  0
Exif.Panasonic.TimerRecording                Byte        1  Off
Exif.Panasonic.InternalNDFilter              Rational    1  0/128
Exif.Panasonic.HDR                           Short       1  Off
Exif.Panasonic.ClearRetouchValue             Rational    1  0/0
Exif.Panasonic.TouchAE                       Short       1  Off
Exif.Panasonic.MakerNoteVersion              Undefined   4  1.44
Exif.Panasonic.FlashFired                    Short       1  No
Exif.Panasonic.TextStamp3                    Short       1  Off
Exif.Panasonic.TextStamp4                    Short       1  Off
Exif.Panasonic.BabyAge2                      Ascii      20  not set
Exif.Photo.FlashpixVersion                   Undefined   4  1.00
Exif.Photo.InteroperabilityTag               Long        1  13356
Exif.Iop.InteroperabilityIndex               Ascii       4  R98
Exif.Iop.InteroperabilityVersion             Undefined   4  1.00
Exif.Photo.SensingMethod                     Short       1  One-chip color area
Exif.Photo.ExposureMode                      Short       1  Auto
Exif.Photo.WhiteBalance                      Short       1  Auto
Exif.Photo.FocalLengthIn35mmFilm             Short       1  84.0 mm
Exif.Thumbnail.Compression                   Short       1  JPEG (old-style)
Exif.Thumbnail.Orientation                   Short       1  top, left
Exif.Thumbnail.XResolution                   Rational    1  180
Exif.Thumbnail.YResolution                   Rational    1  180
Exif.Thumbnail.ResolutionUnit                Short       1  inch
Exif.Thumbnail.JPEGInterchangeFormat         Long        1  14836
Exif.Thumbnail.JPEGInterchangeFormatLength   Long        1  2125
Exif.Thumbnail.YCbCrPositioning              Short       1  Co-sited
850 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ 

Also available in: Atom PDF