ExifTool Forum

General => Metadata => Topic started by: VladoBENZ on October 24, 2019, 09:56:31 AM

Title: Adding thumbnails to multiple files
Post by: VladoBENZ on October 24, 2019, 09:56:31 AM
Hello, I have a question. For example I have 20 files named DSC0001.jpg, DSC0002.jpg etc. And I prepared 20 thumbnails, named DSC0001.jpeg, DSC0002.jpeg etc. in the same folder. Is there any way with one command to insert the corresponding thumbnail in all the images, because if I use a command for every file...basically I have 300 pics in the folder lol. 8)
Title: Re: Adding thumbnails to multiple files
Post by: StarGeek on October 24, 2019, 10:35:49 AM
See this example (https://exiftool.org/exiftool_pod.html#exiftool--JpgFromRaw-d-f_JFR.JPG--ext-NEF--r) from the docs.

The command is basically the same, except you want to ThumbnailImage instead of JpgFromRaw and alter the filename part to reflect your filenames.  The -r (recurse) option (https://exiftool.org/exiftool_pod.html#r-.--recurse) can be removed if all 300 files are in the same directory.  Also, you want to make sure and use the -ext (extension) option (https://exiftool.org/exiftool_pod.html#ext-EXT---ext-EXT--extension) to work on just the .jpg and not the .jpeg files

exiftool '-ThumbnailImage<=%d%f.jpeg' -ext jpg <DIR>