|
Is there a stock script for backup / restore of EXIF data to files you'd be willing to share? I'm particularly curious about doing this via bash at the moment.
I think I've got the backup part -- in DOS this seems to work:
for %f in (*.cr2) do if not exist %~nf.jpg exiftool -b -PreviewImage -w .thumb %f
for %f in (*.thumb) do if exist %~nf.cr2 exiftool -b -AllTagsFromFile %~nf.cr2 -o %~nf.jpg %f
and in BASH:
exiftool -if '$jpgfromraw' -b -jpgfromraw -w %d%f.jpg -execute -if '$previewimage' -b -previewimage
+ -w %d%f.jpg -execute -tagsfromfile @ -srcfile %d%f.jpg -overwrite_original -common_args --ext jpg
+ --ext xmp FolderNameHere
But restoring from the backed up JPEGs to edited JPEGs to over-write the mangled EXIF is eluding me. I did try Google and am surprised that I don't find instructions for backup / restore using EXIFtool. I've had pretty good results using a program called EXIFer but EXIFTool seems to support more tags.
Any examples of backing up EXIF data for all files in a folder then restoring, particularly in BASH that you might share?
Thank you in advance,
-mg
|