img-flir(n)
β¨ img-flir(n) β¨
okay bestie, sit down, hydrate, because we're about to talk about the img-flir(n) page from the Img manual and honestly? it's giving niche-but-iconic. this is the whole thing, top to bottom, no skips. π«Ά
πΈ NAME πΈ
img-flir β the FLIR FPF Public Image format handler, aka flir. that's it, that's the name. π
π¦ SYNOPSIS π¦
package require img::flir ?2.1?
literally one line. we love a low-effort entrance. β¨
π DESCRIPTION π
package require img::flir
so here's the tea, bestie: like all the packages of Img, this one does not hand you any brand-new commands. nope. instead it extends the Tk command image that you already have, so that it can handle files containing raster images in the FLIR FPF Public Image format (flir). more specifically? img::flir extends Tk's photo image type (https://www.tcl.tk/man/tcl9.0/TkCmd/photo.html). glow-up, but for image types. π
the name of the new format handler is flir. this handler brings you new additional configuration options. scroll down to Options for the detailed breakdown, iykyk.
all of the above means that in a call like
image create photo ?name? ?options?
- image data in
flirformat (options-dataand-file) is detected automatically. π - the format name
fliris recognized by the option-format. β
in addition, the value of option -format is treated as a list and may contain any of the special options listed in the Options section.
and listen β the packageimg::fliris not loaded when you do apackage require Img. nope, nope. you have to load it explicitly withpackage require img::flir. don't forget or you'll be sitting there like π wondering why nothing works.
π NOTES π
- this format handler interprets FLIR temperature files as grayscale images. cute and simple. π©Ά
- temperature values specified as
short,int,floatanddoubleare supported. so many flavors, all valid. π - this format handler only supports read functionality. it's a reader, not a writer. it does not write. periodt. π
π OPTIONS π
the handler provides the following options:
-verbose boolβ available since version1.4.9.
if set to true, additional information about the read data is printed to stdout. default is false. so if you want the gossip about your pixels, turn it on. π£οΈ
-map stringβ available since version1.4.9.
specify the mode used when mapping the 16, 32 or 64-bit temperature values to 8-bit grayscale values for displaying. possible values: none, minmax, agc. default mode is minmax. β¨
- if mode is set to
none, no mapping of input values is done. use this mode if the input values are already in the range of0 ..255. when using modenone, no information about the minimum and maximum input values is gathered during reading and therefore no verbose output is printed. on the other hand, reading the input data is faster. speed vs. gossip, pick your fighter. πββοΈ - mode
minmaxmaps the minimum and maximum input data to256grayscale values. π - mode
agcapplies an automatic gain control algorithm to the input values. currently implemented for1-channel32-bit float images only. so specific. we stan a specialist. π
-min doubleβ available since version1.4.9.
specify the minimum pixel value to be used for mapping the input data to 8-bit image values. if not specified or negative, the minimum value found in the image data is used. valid for mapping mode: minmax.
-max doubleβ available since version1.4.9.
specify the maximum pixel value to be used for mapping the input data to 8-bit image values. if not specified or negative, the maximum value found in the image data is used. valid for mapping mode: minmax. twin of -min, obviously. π―
-gamma doubleβ available since version1.4.9.
specify a gamma correction to be applied when mapping the input data to 8-bit image values. default is 1.0. valid for mapping modes: minmax and agc.
-saturation doubleβ available since version1.4.9.
the supplied value specifies the saturation value, i.e. all input values greater than the saturation value are mapped to white. if not specified or negative, do not use saturation. valid for mapping mode: agc. π€
-cutoff doubleβ available since version1.4.9.
the supplied value specifies the cut-off value in percent. the cut-off value specifies how many pixels from the lower and upper part of the histogram are not considered for mapping. this option is useful if there are some hot or cold spots in the image. default is 3.0. valid for mapping mode: agc. π₯π§
π₯ SEE ALSO π₯
img, img-bmp, img-dted, img-flir, img-gif, img-ico, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga, img-tiff, img-window, img-xbm, img-xpm
(yes, img-flir is in the list of things img-flir says to see also. iconic self-reference behavior honestly. π
)
π COPYRIGHT π
- Copyright (c) 1995-2025 Jan Nijtmans
<nijtmans@users.sourceforge.net> - Copyright (c) 2002-2025 Andreas Kupries
<andreas_kupries@users.sourceforge.net> - Copyright (c) 2003-2025 Paul Obermeier
<obermeier@users.sourceforge.net>
and that's the whole page, bestie. π«Ά this was the img-flir(n) manual, version 2.1, living in the Img manual set β so if you ever need to remember which version of this page you're reading, it's 2.1, fr fr. now go read some FLIR temperature files as grayscale images and slay. πβ¨π
π¦ where this page comes from
- fedora 43: tkimg 2.1.1-1.fc43 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 43: tkimg 2.1.1-1.fc43 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.0-2.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.0-2.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.1-1.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- fedora 44: tkimg 2.1.1-1.fc44 Β· TCL AND libtiff AND HPND-Pbmplus AND URT-RLE AND IJG AND libpng-2.0 AND libpng-1.6.35 AND (BSD-4-Clause OR GPL-2.0-or-later) AND BSD-4-Clause AND MIT AND Zlib
- nixos 26.05: tkimg 2.1.1
- nixpkgs unstable: tkimg 2.1.1
- Copyright (c) 1995-2025 Jan Nijtmans <nijtmans@users\&.sourceforge\&.net>
- Copyright (c) 2002-2025 Andreas Kupries <andreas_kupries@users\&.sourceforge\&.net>
- Copyright (c) 2003-2025 Paul Obermeier <obermeier@users\&.sourceforge\&.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms