ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: philbond87 on May 01, 2021, 01:15:30 PM

Title: Extracting previews (using the image's current filename)
Post by: philbond87 on May 01, 2021, 01:15:30 PM
Is it possible, when extracting all previews, to have the extracted previews use the current name of the file from which they were extracted, rather than the file's original name?

Using:
exiftool -a -b -W FOLDERNAME/%f_%t%-c.%s

I get the file's original name (suffixed with the preview type, which I do still want).

Thanks,
Phil
Title: Re: Extracting previews (using the image's current filename)
Post by: StarGeek on May 01, 2021, 01:34:08 PM
I'm not understanding.  What do you mean "original name" vs "current name"?  The %f will use the name of the file in which the previews are being extracted from.  If the previews are extracted from IMG_0074.Jpg, then %f will be IMG_0074.
Title: Re: Extracting previews (using the image's current filename)
Post by: philbond87 on May 01, 2021, 01:41:10 PM
Ah... user error.
I made a mistake in my application and was renaming the files after preview extraction.

Thanks!