Author Topic: Easy newbie question ;-)  (Read 4184 times)

nndrom

  • Newbie
  • *
  • Posts: 7
Re: Easy newbie question ;-)
« Reply #15 on: May 10, 2017, 01:57:37 PM »
Hi Phil,

Many thanks, you saved me!

Nick

Valith

  • Newbie
  • *
  • Posts: 4
Re: Easy newbie question ;-)
« Reply #16 on: May 10, 2017, 02:30:14 PM »
I changed the code again to:

Code: [Select]
exiftool '-FileModifyDate<FileModifyDate#' '-FileModifyDate<CreateDate#' '-FileName<${FileModifyDate}_iPhone 4(%f)%-c.%le' '-FileName<${CreateDate}_${Model;}(%f)%-c.%le' -d %Y-%m-%d_%H.%M.%S *.JPG

Thanks!

I'm also thinking of adding a part to my syntax to save the original filename in EXIF (just in case, might be useful to store it in EXIF, not only in the new filename, between the (...). I think it's easier to use the EXIF comments field, when i need to compare stuff to the original filename):

So i'll add this, right?:
'-Comment<FileName'

So the new one would be (including using the #'s):

Code: [Select]
exiftool '-Comment<FileName' '-FileModifyDate#<FileModifyDate#' '-FileModifyDate#<CreateDate#' '-FileName<${FileModifyDate}_iPhone 4(%f)%-c.%le' '-FileName<${CreateDate}_${Model;}(%f)%-c.%le' -d %Y-%m-%d_%H.%M.%S *.JPG

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 5092
Re: Easy newbie question ;-)
« Reply #17 on: May 10, 2017, 03:28:11 PM »
Comment is not a safe place to put metadata.  Many programs overwrite it without regards for what may already be there.  I would suggest using PreservedFileName, ObjectName, or Title.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.