ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jeffdlb on May 17, 2021, 08:47:32 AM

Title: Is it possible to have filename(s) generated by -w displayed during execution?
Post by: jeffdlb on May 17, 2021, 08:47:32 AM
When the -w option is used to specify an output filename pattern, there does not seem to be an option to have the resulting filename(s) reported as the command executes. For example, if I extract JPEG preview images from Sony RAW files using
> exiftool -b -PreviewImage -w _pv.jpg -ext arw .
then files with names like image_pv.jpg are correctly produced, but Exiftool only reports the number of files processed and created.
I tried increasing verbosity -v1 and -v5 but the info reported does not change. The -progress option enumerates each RAW file but does not state resulting JPEG names. I didn't find a way in the description of the -w option itself to have the new filenames be reported as they are created.

If there is a way to do this I would be grateful to learn of it.

-Jeff
Title: Re: Is it possible to have filename(s) generated by -w displayed during execution?
Post by: StarGeek on May 17, 2021, 12:08:38 PM
Add the -v (-verbose) option (https://exiftool.org/exiftool_pod.html#v-NUM--verbose)
C:\>exiftool -v -a -b -W %d%f_%t%-c.%s -preview:all -progress Y:\!temp\aaaa
======== Y:/!temp/aaaa/A1_09479 original - Copy.ARW [1/2]
Wrote JpgFromRaw to Y:/!temp/aaaa/A1_09479 original - Copy_JpgFromRaw.jpg
Wrote PreviewImage to Y:/!temp/aaaa/A1_09479 original - Copy_PreviewImage.jpg
Wrote ThumbnailImage to Y:/!temp/aaaa/A1_09479 original - Copy_ThumbnailImage.jpg
======== Y:/!temp/aaaa/A1_09479 post exif update.ARW [2/2]
Wrote JpgFromRaw to Y:/!temp/aaaa/A1_09479 post exif update_JpgFromRaw.jpg
Wrote PreviewImage to Y:/!temp/aaaa/A1_09479 post exif update_PreviewImage.jpg
Wrote ThumbnailImage to Y:/!temp/aaaa/A1_09479 post exif update_ThumbnailImage.jpg
    1 directories scanned
    2 image files read
    6 output files created


edit: fixed link
Title: Re: Is it possible to have filename(s) generated by -w displayed during execution?
Post by: jeffdlb on May 17, 2021, 05:34:30 PM
Adding -v did not work. However, using -W instead of -w did work, though I had to modify the command to use the form
> exiftool -v -b -PreviewImage -W %f_pv.jpg -ext arw .

Thanks,
Jeff