write new file name, not use jpg_original

Started by clickclick, February 15, 2021, 02:26:35 PM

Previous topic - Next topic

clickclick

Long time user, first time poster.

I would like to invert the default behavior of creating a jpg_original file.  First, I'd like to keep the extension the same as the original (usually .jpg for me).

But I also do not want to use overwrite_original or overwrite_original_in_place.  Second, I want to keep the original as-is and write a new file with a different name for the modified file. 

I have not been successful so far in searching here, nor trying to come up with my own set of command line options.

The closest I've come is this (say, for an easy operation of stripping all metadata "-all=" then just append "_strip" to the base filename and keep the original extension):

$ exiftool -progress -all= -P -w "%d%f_strip.%e" junk.jpg
======== junk.jpg [1/1]
    1 image files updated
    0 output files created

$ ls -al junk*
-rwxr-xr-x  1 XXXX  YYYY  2196543 Jan 27 20:16 junk.jpg
-rwxr-xr-x@ 1 XXXX  YYYY  2207398 Jan 27 20:16 junk.jpg_original


But clearly...FAIL.  I found one or two posts about using a temporary directory for the originals, and then renaming them back, but it seems like this powerful tool should be able to do it in one shot.  This user is just not sufficiently skilled yet!

$ exiftool -ver
10.38

StarGeek

Quote from: clickclick on February 15, 2021, 02:26:35 PMSecond, I want to keep the original as-is and write a new file with a different name for the modified file.

Use the -o (-out) option.

Example 1
Example 2

Quote $ exiftool -ver
10.38

You might want to upgrade, that version is over 4 years old.
* 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).

clickclick

OMG...so close, yet so far...

Yes, long time user who hasn't upgraded.  (Downloading a new version now...)

Thank you!