img-dted(n)
π img-dted(n) π
okay bestie, gather round, because today we're talking about img-dted β the Digital Terrain Elevation Data format (aka dted) handler for Img. no cap, it's giving "I read elevation data and turn it into something your eyeballs can vibe with" πβ¨
β¨ SYNOPSIS β¨
package require img::dted ?2.1?
that's it. that's the whole summoning ritual π―οΈ
πΈ DESCRIPTION πΈ
so first things first, bestie:
package require img::dted
Like every single package in Img, this one is NOT out here inventing brand-new commands. it doesn't do that. instead it extends the existing Tk command image, so that Tk suddenly understands files containing raster images in the Digital Terrain Elevation Data format (dted). and more specifically? img::dted extends Tk's photo image type. that's the one. that's the target. π―
lowkey important: Tk's photo image type docs live at https://www.tcl.tk/man/tcl9.0/TkCmd/photo.html if you wanna go read up. iykyk π
The name of the new format handler is dted. This handler provides new additional configuration options. See section Options for more detailed explanations. π
All of the above means that in a call like image create photo ?name? ?options?:
- Image data in dted format (options
-dataand-file) is detected automatically. it just KNOWS. main character energy fr fr. β¨ - The format name
dtedis 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 section Options. yes bestie, it's a list, it can hold multiple things, she's versatile like that π
β οΈ and this is the part everyone gets wrong: The packageimg::dtedis not loaded when doing apackage require Img. You have to load it explicitly viapackage require img::dted. no shortcuts, no "but I already required Img", nope. do it yourself. π
π NOTES π
- This format handler interprets DTED elevation files as grayscale images. so if you were expecting rainbow, sorry babe, it's greyscale hours π«οΈ
- This format handler only supports read functionality. read-only. no writing. she's a listener, not a talker. π«Ά
π OPTIONS π
The handler provides the following options:
-verbose boolβ Available since version1.4.0. If set totrue, additional information about the read data is printed tostdout. Default isfalse. so basically it yaps about what it read. sometimes you want the yap. usually you don't. π£οΈβ¨-min shortβ Available since version1.4.0. 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. she'll find the floor herself if you don't tell her where it is π§-max shortβ Available since version1.4.0. Specify the maximum pixel value to be used for mapping the input data to 8-bit image values. Default is the maximum value found in the elevation data. If not specified or negative, the maximum value found in the image data. the ceiling situation, basically. and yes, the default is described against the elevation data while the negative/unspecified fallback says image data β that's exactly what the page says, i'm not touching it, that's just how it is π-gamma doubleβ Available since version1.4.0. Specify a gamma correction to be applied when mapping the input data to 8-bit image values. Default is1.0. the glow-up filter for your elevation data β¨
π SEE ALSO π
imgimg-bmpimg-dtedimg-flirimg-gifimg-icoimg-jpegimg-pcximg-pixmapimg-pngimg-ppmimg-psimg-rawimg-sgiimg-sunimg-tgaimg-tiffimg-windowimg-xbmimg-xpm
(and yes, img-dted is listed in its own SEE ALSO. iconic. self-love. we stan. π)
π¦ 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>
okay that's the whole page, bestie!! π version 2.1, from the Img source, and this whole vibe was brought to you by the img-dted(n) manual page. go read some elevation data, stay grayscale, and remember: package require img::dted or it literally will not work. mwah πβ¨π
π¦ 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