ExifTool Forum

ExifTool => Newbies => Topic started by: xabierr on March 29, 2018, 01:51:44 AM

Title: batch extracting thermal imagery
Post by: xabierr on March 29, 2018, 01:51:44 AM
I have jpg images taken with a FLIR thermal camera and extracting raw images stored in the metadata by using:  exiftool -rawthermalimage filename.jpg > filename.tif in Windows 10

How can I batch process this to extract raw data from all images in a folder?

cheers,

Javier
Title: Re: batch extracting thermal imagery
Post by: Phil Harvey on March 29, 2018, 08:42:33 AM
Hi Javier,

I hope you were using the -b option.

To do this for all JPG files in a folder, try this:

exiftool -rawthermalimage -b -w tif -ext jpg DIR

- Phil
Title: Re: batch extracting thermal imagery
Post by: Ultrapurple on September 09, 2021, 06:46:53 AM
Sorry to resurrect this zombie thread.

I have been trying to convert FLIR SC-660 images (https://www.eevblog.com/forum/thermal-imaging/enhancing-flir-image-quality/msg2897132/#msg2897132) using this magic incantation. It used to work but now I can't seem to make it behave. DIR seems (now?) to be mandatory; is this the case?
For instance,
D:\Thermal\2021>exiftool -rawthermalimage -b -w tif -ext jpg D:\Thermal\2021
will scan the image(s) in the current directory (D:\Thermal\2021), but only when I specify the DIR.
I was under the impression that DIR was (a) optional and (b) to specify the output directory - am I wrong?

Just for clarity I am using version 12.30 on a Windows 10 machine; exiftool.exe is in a directory in the Path and I'm running the commands from a command prompt box.
Title: Re: batch extracting thermal imagery
Post by: StarGeek on September 09, 2021, 11:29:46 AM
Quote from: Ultrapurple on September 09, 2021, 06:46:53 AM
I was under the impression that DIR was (a) optional and (b) to specify the output directory - am I wrong?

The directory to scan is not optional, never has been.  Exiftool needs to know where it needs to look for files to process.  You can use a single dot . to indicate that you want to process the current directory.

In order to control where the thermal images are written, you need to include a full format string, e.g. -w /new/path/%f.tif instead of just the extension.  See the -w (-TextOut) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) for details.