Thermal Conversion

How a FLIR radiometric JPG becomes temperature data — and the open-source tools that do it.

From radiometric JPG to temperature

A FLIR camera saves an ordinary-looking JPG, but embedded inside it is a block of raw radiometric data plus the calibration constants needed to turn that data into temperatures. The original TrEnCh-IR website ran this conversion automatically on an Azure Function app. This static site instead documents the pipeline and points you to the open-source tools — primarily those by Glenn Tattersall — that you can run yourself to reproduce every output the live site generated.

1

Extract metadata

Read the FLIR calibration parameters (Planck constants, emissivity, reflected temperature, atmospheric terms) and any GPS tags from the JPG with ExifTool.

2

Pull the raw image

Extract the embedded raw thermal data stream (a 16-bit image) and, if present, the embedded visible/digital photo.

3

Convert to °C

Apply the Planck/radiance equations to convert each raw 16-bit value into a surface temperature in degrees Celsius.

4

Color-map & export

Render the temperature matrix with ironbow, rainbow, and greyscale palettes, and export raw data + parameters for further analysis.

Temperature color palettes produced

Ironbow
Rainbow
Greyscale

Open-source conversion tools

All maintained by Glenn Tattersall (gtatters) on GitHub. Pick the one that fits your workflow — R, ImageJ, or the command line.

R package

Thermimage

The core R package for working with radiometric thermal image files: import FLIR data, apply the raw-to-temperature conversion, and analyze and visualize temperature matrices. The recommended starting point for an R-based workflow.

ImageJ macro

ThermImageJ

ImageJ/Fiji functions and macros for opening FLIR files, converting to temperature, and measuring regions of interest interactively — ideal if you prefer a point-and-click GUI over scripting.

Command line / Perl

ThermimageBash

Command-line tools for batch-converting FLIR thermal image files. Useful for scripting bulk conversions of large image sets outside of R or ImageJ.

R

FLIRJPGConvert

Focused routines for converting FLIR JPG files, extracting the embedded raw data and calibration parameters needed for temperature conversion.

R

FLIRonejpg

Utilities geared toward FLIR ONE camera JPGs, handling their particular embedded data layout.

R

ThermimageCalibration

Reference data files comparing temperature calculations against thermal-imaging software, useful for validating your own conversion results.

R

thermocamTools

A collection of custom helper functions for FLIR thermocam projects.

Dependency

ExifTool

Phil Harvey's ExifTool is the underlying utility these packages call to read FLIR metadata and extract the embedded raw thermal and visible images. Install it first.

Please get in touch to share your thermal images in our Gallery and Map. See the project README for the metadata schema.