restore original

Started by txastro, April 30, 2018, 09:43:04 PM

Previous topic - Next topic

txastro

Hello,
I have some image backups that I want to restore.  They are located in Z:\Photos\20180428.  When I executre the command exiftool -restore_original Z:\Photos\20180428, I get a message that 1 directory scanned, but 0 original files found.

Can anyone point me to the error in my command?

Thanks,
Xavier

Phil Harvey

Hi Xavier,

The -restore_original option restores from "_original" files that ExifTool created.  They must be in the same directory as the edited files.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

txastro

Hi Phil,
I know my mistake then.  I deleted all but the backup "_original" files, so they no longer exists in that directory.  There's a chance my offline backup grabbed them.  I can also rename copies of them back to jpg.   I know what NOT to do now!   :)

Thanks for the help!
Xavier

StarGeek

Quote from: txastro on May 01, 2018, 11:58:38 AMI can also rename copies of them back to jpg.

You could use exiftool to quickly rename them.
exiftool "-filename<${filename;s/_original//}" Z:\Photos\20180428
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

txastro


Phil Harvey

Quote from: StarGeek on May 01, 2018, 01:12:11 PM
exiftool "-filename<${filename;s/_original//}" Z:\Photos\20180428

You would need to specify "Z:\Photos\20180428\*_original" or something like that to pick up the "_original" files.  ExifTool won't process them by default.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

txastro

That worked perfectly.  Thanks!

Xavier