TransWikia.com

How do I change only the year in the metadata using ExifTool, for a batch of files?

Photography Asked by cchiera on February 2, 2021

Have a few thousand tiff photos I’ve scanned in over the past few years into Lightroom Classic. For reasons I won’t go into here since not relevant to the question, I’d like to change the year for all photos to be 45 years earlier than what they currently are but want the month day hour and seconds to all stay as they are.

Lightroom has an ExifTool plugin but the docs don’t have an example for just shifting only the year back by a certain number.

Something maybe like, exiftool "-AllDates-=45:0:0:0:0”, but with only changing year.

One Answer

You're very close. By default, time shifts assume the shift is in hours unless there's a space between numbers. Try this:
exiftool "-AllDates-=45:0:0 0" /path/to/files/

This will shift the three most common EXIF tags, DateTimeOriginal, CreateDate, and ModifyDate. It will not affect any other time based tags. You would have to specify them separately.

Additionally, on Windows, there are problems if you try to set the file system timestamps, FileCreateDate and FileModifyDate, back before circa 1970. This is due to some problems with the underlying Perl routines that exiftool is based upon.

Answered by StarGeek on February 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP