Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 535
  • Last Modified:

Can't Repair Exif Data

I have a batch of files that were taken with a Japanese mobile phone in 2006 that I'm trying to process.  All the metadata I need is in there, but the exposure date/time is wrong.  I am trying to fix it, but none of the tools I usually use are working.  I have tried a few things with ExifTool, but I can't seem to change the date.  For some commands I get this:
Error: [minor] MakerNotes offsets may be incorrect (fix or ignore?) - [path]
    0 image files updated
    1 files weren't updated due to errors
I have also tried GraphicConverter's time shift function (which I suspect actually uses exiftool), but nothing happens.  No errors, but no changes.  The only way I have been able to fix it is to open in Photoshop and save a copy, thereby forcing a new metadata header to be created.  But that means I have to recompress the data and I don't want to do that.  Any ideas how to solve this?

Mike

0
shacho
Asked:
shacho
  • 2
2 Solutions
 
lherrouCommented:
shacho,

You could always use a hex editor to go in and actually edit the raw data that make up the Exif information. If you take this approach, work only with copies of the files, not the originals, since it's pretty easy to mess up the header completely, and have an unviewable file.

The basic procedure is pretty simple - get a hex editor (there's a number of free or cheap options), examine the header of several of the files until you have a sense of the structure and of the sections of the EXIF data you want to edit, edit it, save it and open in a viewer program to ensure you didn't damage the image, then check if the EXIF information is now correct.

Cheers,
LHerrou
0
 
shachoAuthor Commented:
I did manage to work out another solution using exiftool.  I got it to force the correction by shifting forward with -F enabled then right back.

unix: exiftool -F -alldates+='0:0:0 0:0:1' ./ -execute -alldates-='0:0:0 0:0:1' ./
win:  exiftool -F -alldates+="0:0:0 0:0:1" \ -execute -alldates-='0:0:0 0:0:1' \

In fact, on my system a zero-shift ( exiftool -F -alldates+="0:0:0 0:0:0" \ ) worked for me on xp, but the bsd version rejected it saying there was nothing to change.

Mike
0
 
shachoAuthor Commented:
I cannot seem to close this discussion properly so I have requested attention.

Mike
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now