How to resize image without losing EXIF data?

Photo EXIF and system metadata

  • I changed phones a few weeks ago, and the transfer utility that copied data from phone to phone screwed up the /system/ timestamp of my photos. Unfortunately, this changed the sort order, so I can't find anything. How can I fix the data? Using an Exif data tool, I was able to determine that the image metadata dates are still there. What I want to do is apply the photo Exif data to the file's system data. I've poked at the documentation for Exiftool, and it can write the Exif data out, but it can't affect the file's system date. I'm pretty sure I could do this with piping to touch, but... that gets into heavy voodoo and scares me. Anybody willing to help me figure this out? I'm using OSX Mavericks, phone is Android, I'll be copying the files back to the phone via USB after. I do have access to a Windows box if necessary.

  • Answer:

    Try exiftool "-DateTimeOriginal>FileModifyDate" * At least on Windows it changes the NTFS modification timestamp to when the picture was taken, if that's what you want to achieve; don't know about OS X's filesystem, though.

daveqat at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

Runes

http://www.sentex.net/~mwandel/jhead/'s -ft option sets the file's system time stamp to what is stored in the Exif header. It's cross-platform.

scruss

Yes, use jhead, jhead is magic.

BungaDunga

Bangaioh, you did it! Thank you! :D

daveqat

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.