Package: exiftran
Version: 2.07-10
Severity: important
Tags: upstream

Greetings,

After rotating a JPG image, exiftool (simple dump of EXIF data) chokes and
reports an error just under 'Camera ID'

Warning                         : Bad EquipmentIFD directory

Prior to using exiftran to rotate the image, exiftool can read the full set of
EXIF data just fine.

I've been using geeqie (which I believe has always used exiftran as its back-
end), as well as some custom scipts that have variously used exiftran and
jpegexiforient for a few years.

I have not had a problem before, but it bit me today when trying to use
exiftool to update time stamps on rotated jpg's -- it simply chokes with a
warning that the exif data is corrupted.  I've run some tests against out-of-
camera files, and provide full copies of exiftool data below.

Going back through my old photos I see this has been occurring since 2011-02,
when I first started using an Olympus E-620 DSLR.  I've confirmed the problem
also exists with the Olympus E-PM1 JPG's, but have no other cameras to hand to
compare.

I accept that it may well be a problem with the exiftool package, though from
here it feels more like one with exiftran (just because exiftool works fine on
the jpg before it's run through exiftran).

Workarounds ---  I haven't found anything that doesn't seem to use the same
backend - jhead, jpegexiforient, etc - so there's no easy way to do this.  I've
had some success with using this sequence to recover data from the original ORF
file (obviously you can't recover it from the original jpeg, as the rotation
will be 'wrong').  I'm still testing whether this breaks anything else further
down the workflow.

exiftool -tagsfromfile GOOD-INPUT.ORF  -exif:MakerNotes  BROKEN-EXIF.JPG

Happy to provide more information, original ORF's & JPG's (about 10MB each) if
that would help.



EXIF details follow - three exiftool dumps from a) ORF (Olympus RAW format), b)
matching JPG (out of camera) before any processing, c) JPG after running
through exiftran (showing the Warning: Bad EquipmentIFD directory error.



 a) ORF (Olympus RAW format)

ExifTool Version Number         : 8.60
File Name                       : good-out-of-camera-orf.orf
Directory                       : .
File Size                       : 13 MB
File Modification Date/Time     : 2012:05:14 16:33:28+01:00
File Permissions                : rw-r--r--
File Type                       : ORF
MIME Type                       : image/x-olympus-orf
Exif Byte Order                 : Little-endian (Intel, II)
Image Width                     : 4100
Image Height                    : 3084
Bits Per Sample                 : 16
Compression                     : Uncompressed
Photometric Interpretation      : BlackIsZero
Image Description               : OLYMPUS DIGITAL CAMERA
Make                            : OLYMPUS IMAGING CORP.
Camera Model Name               : E-620
Strip Offsets                   : 1455616
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 3084
Strip Byte Counts               : 11663568
X Resolution                    : 314
Y Resolution                    : 314
Planar Configuration            : Chunky
Resolution Unit                 : inches
Software                        : Version 1.0
Modify Date                     : 2012:05:06 12:41:37
Exposure Time                   : 1/1000
F Number                        : 11.0
Exposure Program                : Program AE
ISO                             : 800
Exif Version                    : 0221
Date/Time Original              : 2012:05:06 12:41:37
Create Date                     : 2012:05:06 12:41:37
Exposure Compensation           : 0
Max Aperture Value              : 4.0
Light Source                    : Unknown
Flash                           : Auto, Did not fire
Focal Length                    : 10.0 mm
Thumbnail Image                 : (Binary data 3520 bytes, use -b option to
extract)
Special Mode                    : Fast, Sequence: 4, Panorama: (none)
Camera ID                       : OLYMPUS DIGITAL CAMERA
Equipment Version               : 0100
Camera Type 2                   : S0023
Serial Number                   : G73521363
Internal Serial Number          : 4080932005231001
Focal Plane Diagonal            : 21.6 mm
Body Firmware Version           : 1.009
Lens Type                       : Olympus Zuiko Digital ED 9-18mm F4.0-5.6
Lens Serial Number              : 300220096
Lens Model                      : OLYMPUS 9-18mm F4.0-5.6
Lens Firmware Version           : 1.002
Max Aperture At Min Focal       : 4.0
Max Aperture At Max Focal       : 5.6
Min Focal Length                : 9
Max Focal Length                : 18
Max Aperture At Current Focal   : 4.2
Lens Properties                 : 0xc044
Extender                        : None
Extender Serial Number          :
Extender Model                  :
Extender Firmware Version       : 0
Flash Type                      : None
Flash Model                     : None
Flash Firmware Version          : 0
Flash Serial Number             :
Camera Settings Version         : 0100
Preview Image Valid             : Yes
Preview Image Start             : 32768
Preview Image Length            : 914745
AE Lock                         : Off
Metering Mode                   : Center-weighted average
Exposure Shift                  : 0
Macro Mode                      : Off
Focus Mode                      : MF; S-AF, MF
Focus Process                   : AF Used; 16
AF Search                       : Ready
AF Areas                        : (121,118)-(134,137)
AF Point Selected               : (50%,50%) (50%,50%)
AF Fine Tune Adj                : 0 0 0
Flash Mode                      : Off
Flash Exposure Comp             : 0
Flash Remote Control            : Off
Flash Control Mode              : Off; 0; 0
Flash Intensity                 : n/a
Manual Flash Strength           : n/a
White Balance 2                 : Auto
White Balance Temperature       : Auto
White Balance Bracket           : 0 0
Custom Saturation               : 0 (min -5, max 5)
Modified Saturation             : Off
Contrast Setting                : 0 (min -5, max 5)
Sharpness Setting               : 0 (min -5, max 5)
Scene Mode                      : Standard
Noise Reduction                 : (none)
Distortion Correction           : Off
Shading Compensation            : Off
Gradation                       : Normal; User-Selected
Picture Mode                    : Natural; 2
Picture Mode Saturation         : 0 (min -2, max 2)
Picture Mode Contrast           : 0 (min -2, max 2)
Picture Mode Sharpness          : 0 (min -2, max 2)
Picture Mode BW Filter          : n/a
Picture Mode Tone               : n/a
Noise Filter                    : Low
Art Filter                      : Off; 0; 0; 0
Drive Mode                      : Continuous Shooting, Shot 4
Panorama Mode                   : Off
Image Stabilization             : On, Mode 1
Manometer Pressure              : 0 kPa
Manometer Reading               : 0 m, 0 ft
Extended WB Detect              : On
Raw Dev Version                 : 0100
Raw Dev Exposure Bias Value     : 0
Raw Dev White Balance Value     : 0
Raw Dev WB Fine Adjustment      : 0
Raw Dev Gray Point              : 0 0 0
Raw Dev Saturation Emphasis     : 0 0 0
Raw Dev Memory Color Emphasis   : 0
Raw Dev Contrast Value          : 0 0 0
Raw Dev Sharpness Value         : 0 0 0
Raw Dev Color Space             : sRGB
Raw Dev Engine                  : High Speed
Raw Dev Noise Reduction         : (none)
Raw Dev Edit Status             : Original
Raw Dev Settings                : (none)
Image Processing Version        : 0112
WB RB Levels                    : 500 310 256 256
WB RB Levels 3000K              : 264 644 256 256
WB RB Levels 3300K              : 323 501 256 256
WB RB Levels 3600K              : 348 457 256 256
WB RB Levels 3900K              : 371 424 256 256
WB RB Levels 4000K              : 413 498 256 256
WB RB Levels 4300K              : 384 410 256 256
WB RB Levels 4500K              : 408 434 256 256
WB RB Levels 4800K              : 414 373 256 256
WB RB Levels 5300K              : 442 346 256 256
WB RB Levels 6000K              : 487 311 256 256
WB RB Levels 6600K              : 499 339 256 256
WB RB Levels 7500K              : 530 268 256 256
WB RB Levels CWB1               : 728 190 256 256
WB RB Levels CWB2               : 384 384 256 256
WB RB Levels CWB3               : 384 384 256 256
WB RB Levels CWB4               : 384 384 256 256
Color Matrix                    : 338 -64 -18 -32 336 -48 -2 -68 326
Black Level 2                   : 64 64 64 64
Gain Base                       : 256
Valid Bits                      : 12 0
Crop Left                       : 30 0
Crop Top                        : 28 0
Crop Width                      : 4032
Crop Height                     : 3024
Noise Reduction 2               : (none)
Distortion Correction 2         : Off
Shading Compensation 2          : Off
Multiple Exposure Mode          : Off; 1
Aspect Ratio                    : 4:3
Aspect Frame                    : 0 0 4031 3023
Faces Detected                  : 0 0 0
Face Detect Area                : (Binary data 383 bytes, use -b option to
extract)
Max Faces                       : 0 0 0
Face Detect Frame Size          : 0 0 0 0 0 0
Focus Info Version              : 0100
Scene Detect                    : 0
Zoom Step Count                 : 1
Focus Step Count                : 743
Focus Distance                  : 0.495 m
AF Point                        : Unknown (0x11); Single Target
External Flash                  : Off
External Flash Bounce           : Bounce or Off
External Flash Zoom             : 0
Internal Flash                  : Off
Manual Flash                    : Off
Sensor Temperature              : 572
User Comment                    :
Flashpix Version                : 0100
Color Space                     : sRGB
File Source                     : Digital Camera
CFA Pattern                     : [Blue,Green][Green,Red]
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Gain Control                    : High gain up
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
PrintIM Version                 : 0300
Aperture                        : 11.0
Blue Balance                    : 1.210938
Extender Status                 : Not attached
Image Size                      : 4100x3084
Lens ID                         : Olympus Zuiko Digital ED 9-18mm F4.0-5.6
Preview Image                   : (Binary data 914745 bytes, use -b option to
extract)
Red Balance                     : 1.953125
Scale Factor To 35 mm Equivalent: 2.0
Shutter Speed                   : 1/1000
Circle Of Confusion             : 0.015 mm
Depth Of Field                  : 2.20 m (0.27 - 2.48)
Field Of View                   : 82.7 deg (0.87 m)
Focal Length                    : 10.0 mm (35 mm equivalent: 20.0 mm)
Hyperfocal Distance             : 0.61 m
Light Value                     : 13.9




 b) matching JPG (out of camera) before any processing

ExifTool Version Number         : 8.60
File Name                       : good-out-of-camera-jpg.jpg
Directory                       : .
File Size                       : 8.6 MB
File Modification Date/Time     : 2012:05:14 16:33:28+01:00
File Permissions                : rw-r--r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Image Description               : OLYMPUS DIGITAL CAMERA
Make                            : OLYMPUS IMAGING CORP.
Camera Model Name               : E-620
Orientation                     : Horizontal (normal)
X Resolution                    : 314
Y Resolution                    : 314
Resolution Unit                 : inches
Software                        : Version 1.0
Modify Date                     : 2012:05:06 12:41:37
Y Cb Cr Positioning             : Co-sited
Exposure Time                   : 1/1000
F Number                        : 11.0
Exposure Program                : Program AE
ISO                             : 800
Exif Version                    : 0221
Date/Time Original              : 2012:05:06 12:41:37
Create Date                     : 2012:05:06 12:41:37
Components Configuration        : Y, Cb, Cr, -
Exposure Compensation           : 0
Max Aperture Value              : 4.0
Light Source                    : Unknown
Flash                           : Auto, Did not fire
Focal Length                    : 10.0 mm
Special Mode                    : Fast, Sequence: 4, Panorama: (none)
Camera ID                       : OLYMPUS DIGITAL CAMERA
Equipment Version               : 0100
Camera Type 2                   : S0023
Serial Number                   : G73521363
Internal Serial Number          : 4080932005231001
Focal Plane Diagonal            : 21.6 mm
Body Firmware Version           : 1.009
Lens Type                       : Olympus Zuiko Digital ED 9-18mm F4.0-5.6
Lens Serial Number              : 300220096
Lens Model                      : OLYMPUS 9-18mm F4.0-5.6
Lens Firmware Version           : 1.002
Max Aperture At Min Focal       : 4.0
Max Aperture At Max Focal       : 5.6
Min Focal Length                : 9
Max Focal Length                : 18
Max Aperture At Current Focal   : 4.2
Lens Properties                 : 0xc044
Extender                        : None
Extender Serial Number          :
Extender Model                  :
Extender Firmware Version       : 0
Flash Type                      : None
Flash Model                     : None
Flash Firmware Version          : 0
Flash Serial Number             :
Camera Settings Version         : 0100
Preview Image Valid             : Yes
Preview Image Start             : 8769728
Preview Image Length            : 214346
AE Lock                         : Off
Metering Mode                   : Center-weighted average
Exposure Shift                  : 0
Macro Mode                      : Off
Focus Mode                      : MF; S-AF, MF
Focus Process                   : AF Used; 16
AF Search                       : Ready
AF Areas                        : (121,118)-(134,137)
AF Point Selected               : (50%,50%) (50%,50%)
AF Fine Tune Adj                : 0 0 0
Flash Mode                      : Off
Flash Exposure Comp             : 0
Flash Remote Control            : Off
Flash Control Mode              : Off; 0; 0
Flash Intensity                 : n/a
Manual Flash Strength           : n/a
White Balance 2                 : Auto
White Balance Temperature       : Auto
White Balance Bracket           : 0 0
Custom Saturation               : 0 (min -5, max 5)
Modified Saturation             : Off
Contrast Setting                : 0 (min -5, max 5)
Sharpness Setting               : 0 (min -5, max 5)
Scene Mode                      : Standard
Noise Reduction                 : (none)
Distortion Correction           : Off
Shading Compensation            : Off
Compression Factor              : 2.7
Gradation                       : Normal; User-Selected
Picture Mode                    : Natural; 2
Picture Mode Saturation         : 0 (min -2, max 2)
Picture Mode Contrast           : 0 (min -2, max 2)
Picture Mode Sharpness          : 0 (min -2, max 2)
Picture Mode BW Filter          : n/a
Picture Mode Tone               : n/a
Noise Filter                    : Low
Art Filter                      : Off; 0; 0; 0
Drive Mode                      : Continuous Shooting, Shot 4
Panorama Mode                   : Off
Image Stabilization             : On, Mode 1
Manometer Pressure              : 0 kPa
Manometer Reading               : 0 m, 0 ft
Extended WB Detect              : On
Raw Dev Version                 : 0100
Raw Dev Exposure Bias Value     : 0
Raw Dev White Balance Value     : 0
Raw Dev WB Fine Adjustment      : 0
Raw Dev Gray Point              : 0 0 0
Raw Dev Saturation Emphasis     : 0 0 0
Raw Dev Memory Color Emphasis   : 0
Raw Dev Contrast Value          : 0 0 0
Raw Dev Sharpness Value         : 0 0 0
Raw Dev Color Space             : sRGB
Raw Dev Engine                  : High Speed
Raw Dev Noise Reduction         : (none)
Raw Dev Edit Status             : Original
Raw Dev Settings                : (none)
Image Processing Version        : 0112
WB RB Levels                    : 500 310 256 256
Color Matrix                    : 338 -64 -18 -32 336 -48 -2 -68 326
Black Level 2                   : 64 64 64 64
Gain Base                       : 256
Crop Left                       : 30 0
Crop Top                        : 28 0
Crop Width                      : 4032
Crop Height                     : 3024
Noise Reduction 2               : (none)
Distortion Correction 2         : Off
Shading Compensation 2          : Off
Multiple Exposure Mode          : Off; 1
Aspect Ratio                    : 4:3
Aspect Frame                    : 0 0 4031 3023
Faces Detected                  : 0 0 0
Face Detect Area                : (Binary data 383 bytes, use -b option to
extract)
Max Faces                       : 0 0 0
Face Detect Frame Size          : 0 0 0 0 0 0
Focus Info Version              : 0100
Scene Detect                    : 0
Zoom Step Count                 : 1
Focus Step Count                : 743
Focus Distance                  : 0.495 m
AF Point                        : Unknown (0x11); Single Target
External Flash                  : Off
External Flash Bounce           : Bounce or Off
External Flash Zoom             : 0
Internal Flash                  : Off
Manual Flash                    : Off
Sensor Temperature              : 572
User Comment                    :
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 4032
Exif Image Height               : 3024
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
File Source                     : Digital Camera
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Gain Control                    : High gain up
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
PrintIM Version                 : 0300
Compression                     : JPEG (old-style)
Thumbnail Offset                : 15264
Thumbnail Length                : 3520
Image Width                     : 4032
Image Height                    : 3024
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Aperture                        : 11.0
Blue Balance                    : 1.210938
Extender Status                 : Not attached
Image Size                      : 4032x3024
Lens ID                         : Olympus Zuiko Digital ED 9-18mm F4.0-5.6
Preview Image                   : (Binary data 214346 bytes, use -b option to
extract)
Red Balance                     : 1.953125
Scale Factor To 35 mm Equivalent: 2.0
Shutter Speed                   : 1/1000
Thumbnail Image                 : (Binary data 3520 bytes, use -b option to
extract)
Circle Of Confusion             : 0.015 mm
Depth Of Field                  : 2.20 m (0.27 - 2.48)
Field Of View                   : 82.7 deg (0.87 m)
Focal Length                    : 10.0 mm (35 mm equivalent: 20.0 mm)
Hyperfocal Distance             : 0.61 m
Light Value                     : 13.9




 c) JPG after running through exiftran (showing the Warning: Bad EquipmentIFD
directory error


ExifTool Version Number         : 8.60
File Name                       : bad-after-rotating-in-geeqie-jpg.jpg
Directory                       : .
File Size                       : 8.2 MB
File Modification Date/Time     : 2012:05:14 16:34:56+01:00
File Permissions                : rw-r--r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Image Description               : OLYMPUS DIGITAL CAMERA
Make                            : OLYMPUS IMAGING CORP.
Camera Model Name               : E-620
Orientation                     : Horizontal (normal)
X Resolution                    : 314
Y Resolution                    : 314
Resolution Unit                 : inches
Software                        : Version 1.0
Modify Date                     : 2012:05:06 12:41:37
Y Cb Cr Positioning             : Co-sited
Exposure Time                   : 1/1000
F Number                        : 11.0
Exposure Program                : Program AE
ISO                             : 800
Exif Version                    : 0221
Date/Time Original              : 2012:05:06 12:41:37
Create Date                     : 2012:05:06 12:41:37
Components Configuration        : Y, Cb, Cr, -
Exposure Compensation           : 0
Max Aperture Value              : 4.0
Metering Mode                   : Center-weighted average
Light Source                    : Unknown
Flash                           : Auto, Did not fire
Focal Length                    : 10.0 mm
Special Mode                    : Fast, Sequence: 4, Panorama: (none)
Camera ID                       : OLYMPUS DIGITAL CAMERA
Warning                         : Bad EquipmentIFD directory
User Comment                    :
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 3024
Exif Image Height               : 4032
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
File Source                     : Digital Camera
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Gain Control                    : High gain up
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
PrintIM Version                 : 0300
Compression                     : JPEG (old-style)
Thumbnail Offset                : 1700
Thumbnail Length                : 2928
Image Width                     : 3024
Image Height                    : 4032
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:0 (1 2)
Aperture                        : 11.0
Image Size                      : 3024x4032
Shutter Speed                   : 1/1000
Thumbnail Image                 : (Binary data 2928 bytes, use -b option to
extract)
Focal Length                    : 10.0 mm
Light Value                     : 13.9



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.1.0-1-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages exiftran depends on:
ii  libc6      2.13-32
ii  libexif12  0.6.20-2
ii  libjpeg8   8d-1

exiftran recommends no packages.

exiftran suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to