Metada missing in some files

Started by exxe, August 09, 2014, 07:44:10 AM

Previous topic - Next topic

exxe

Hello everybody,

This is the first message I write in this forum and I hope that it isn't the last one. Nowadays I'm facing a great problem with some of the photos that my family used to keep on a computer. Unfortunately, this computer crashed several months ago and a new one had to be bought. All the information that was stored on the old computer was copied to the new one as the hard disk drives didn't have any problem. Well, the other day my mother tried to see these photos and some of them were corrupted so I'm trying to repair them. The problem is that I don't know how to do that thus I searched on the internet and I found exiftool application. I have used it to read the metadata information stored on the corrupted files but it seems that nothing has remained. So, I was wondering if someone could help me. I attach two images that were stored on the same folder. The first one, which is called IMG_1782.JPG, is a corrupted image and when trying to read the metadata information with exiftool shows the following message:
ExifTool Version Number         : 9.13
File Name                       : IMG_1782.JPG
Directory                       : .
File Size                       : 1897 kB
File Modification Date/Time     : 2008:06:19 14:51:10+02:00
File Access Date/Time           : 2014:08:08 22:33:13+02:00
File Inode Change Date/Time     : 2014:08:08 22:31:36+02:00
File Permissions                : rw-r--r--
Error                           : File format error


The second image, which is called IMG_1800.JPG, is not corrupted and shows the following information:
ExifTool Version Number         : 9.13
File Name                       : IMG_1800.JPG
Directory                       : .
File Size                       : 2.2 MB
File Modification Date/Time     : 2014:08:08 22:48:52+02:00
File Access Date/Time           : 2014:08:08 22:49:08+02:00
File Inode Change Date/Time     : 2014:08:08 22:48:52+02:00
File Permissions                : rw-r--r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : Canon
Camera Model Name               : Canon DIGITAL IXUS 55
Orientation                     : Horizontal (normal)
X Resolution                    : 180
Y Resolution                    : 180
Resolution Unit                 : inches
Modify Date                     : 2008:06:19 14:31:20
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/60
F Number                        : 2.8
ISO                             : 168
Exif Version                    : 0220
Date/Time Original              : 2008:06:19 14:31:20
Create Date                     : 2008:06:19 14:31:20
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel       : 5
Shutter Speed Value             : 1/60
Aperture Value                  : 2.8
Max Aperture Value              : 2.8
Focal Length                    : 5.8 mm
Macro Mode                      : Normal
Self Timer                      : Off
Quality                         : Superfine
Canon Flash Mode                : Red-eye reduction (Auto)
Continuous Drive                : Single
Focus Mode                      : Single
Record Mode                     : JPEG
Canon Image Size                : Large
Easy Mode                       : Full auto
Digital Zoom                    : None
Camera ISO                      : Auto
Metering Mode                   : Evaluative
Focus Range                     : Auto
AF Point                        : Auto AF point selection
Canon Exposure Mode             : Easy
Lens Type                       : Unknown (-1)
Max Focal Length                : 17.4 mm
Min Focal Length                : 5.8 mm
Focal Units                     : 1000/mm
Max Aperture                    : 2.8
Min Aperture                    : 5.6
Flash Bits                      : E-TTL, Built-in
Focus Continuous                : Single
AE Setting                      : Normal AE
Zoom Source Width               : 2592
Zoom Target Width               : 2592
Spot Metering Mode              : Center
Photo Effect                    : Off
Manual Flash Output             : n/a
Focal Type                      : Zoom
Focal Plane X Size              : 5.84 mm
Focal Plane Y Size              : 4.37 mm
Auto ISO                        : 336
Base ISO                        : 50
Measured EV                     : 3.41
Target Aperture                 : 2.8
Target Exposure Time            : 1/60
Exposure Compensation           : 0
White Balance                   : Auto
Slow Shutter                    : Off
Shot Number In Continuous Burst : 0
Optical Zoom Code               : 0
Flash Guide Number              : 7.5
Flash Exposure Compensation     : 0
Auto Exposure Bracketing        : Off
AEB Bracket Value               : 0
Control Mode                    : Camera Local Control
Focus Distance Upper            : 1.12 m
Focus Distance Lower            : 0 m
Bulb Duration                   : 0
Camera Type                     : Compact
Auto Rotate                     : None
ND Filter                       : Off
Self Timer 2                    : 0
Flash Output                    : 500
Canon Image Type                : IMG:DIGITAL IXUS 55 JPEG
Canon Firmware Version          : Firmware Version 1.00
File Number                     : 100-1800
Camera Temperature              : 35 C
Canon Model ID                  : PowerShot SD450 / Digital IXUS 55 / IXY Digital 60
Num AF Points                   : 9
Valid AF Points                 : 9
Canon Image Width               : 2592
Canon Image Height              : 1944
AF Image Width                  : 1296
AF Image Height                 : 242
AF Area Width                   : 233
AF Area Height                  : 44
AF Area X Positions             : -233 0 233 -233 0 233 -233 0 233
AF Area Y Positions             : -45 -45 -45 0 0 0 45 45 45
AF Points In Focus              : 5
Primary AF Point                : 5
Thumbnail Image Valid Area      : 0 0 0 0
Date Stamp Mode                 : Off
My Color Mode                   : Off
Firmware Revision               : 1.00 rev 4.00
User Comment                    :
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 2592
Exif Image Height               : 1944
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
Related Image Width             : 2592
Related Image Height            : 1944
Focal Plane X Resolution        : 11520
Focal Plane Y Resolution        : 11571.42857
Focal Plane Resolution Unit     : inches
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Custom Rendered                 : Normal
Exposure Mode                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Owner Name                      :
Compression                     : JPEG (old-style)
Thumbnail Offset                : 2176
Thumbnail Length                : 3872
XMP Toolkit                     : Image::ExifTool 9.13
Flash Fired                     : True
Flash Function                  : False
Flash Mode                      : Auto
Flash Red Eye Mode              : True
Flash Return                    : No return detection
Image Width                     : 2592
Image Height                    : 1944
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Aperture                        : 2.8
Flash Exposure Compensation     : 0
Drive Mode                      : Single-frame Shooting
Flash                           : Auto, Fired, Red-eye reduction
Flash Type                      : Built-In Flash
Image Size                      : 2592x1944
Lens                            : 5.8 - 17.4 mm
Lens ID                         : Unknown 5-17mm
Red Eye Reduction               : Off
Scale Factor To 35 mm Equivalent: 5.9
Shooting Mode                   : Full auto
Shutter Curtain Sync            : 1st-curtain sync
Shutter Speed                   : 1/60
Thumbnail Image                 : (Binary data 3872 bytes, use -b option to extract)
Circle Of Confusion             : 0.005 mm
Field Of View                   : 55.2 deg
Focal Length                    : 5.8 mm (35 mm equivalent: 34.4 mm)
Hyperfocal Distance             : 2.37 m
Lens                            : 5.8 - 17.4 mm (35 mm equivalent: 34.4 - 103.2 mm)
Light Value                     : 8.1


I think that if I copy the metadata information from one file to the other the problem would be solved but the -TagsFromFile fails when trying to do it. Does anybody know if it is possible to repair the images? Thanks in advance.

Phil Harvey

Sorry for the delay in responding, but I've been away on vacation.

I'm sorry to be the bearer of bad news, but ExifTool can not be used to repair a file with an error as serious as "File Format Error".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).