img-gif(n)
β¨ img-gif(n) β¨
okay bestie, welcome to img-gif, a page from the Img manual. it's giving GIF. it's giving photo image type. let's get into it π
πΈ NAME πΈ
img-gif β Graphics Interchange Format (gif) π
π¦ SYNOPSIS π¦
package require img::gif ?2.1?
π DESCRIPTION π
so the whole vibe starts here:
package require img::gif
like every single package in Img, this one does not hand you shiny new commands. nope. instead it extends the existing Tk command image, so that Tk suddenly understands files holding raster images in the Graphics Interchange Format (gif). more specifically, img::gif extends Tk's photo image type (the Tcl/Tk photo manual is at https://www.tcl.tk/man/tcl9.0/TkCmd/photo.html β go look, iykyk).
the name of the new format handler is gif. and this handler brings new additional configuration options with it β check the Options section below for the full tea, no crumbs left out. π
all of the above means that in a call like
image create photo ?name? ?options?
- image data in gif format (that's the options
-dataand-file) is detected automatically β not me doing detective work, it just knows. - the format name gif is recognized by the option
-format. periodt.
plus, the value of the option -format is treated as a list, and it may contain any of the special options listed in the Options section. so you can stack them in there. slay.
heads up: the packageimg::gifis not loaded when you do apackage require Img. you have to load it explicitly withpackage require img::gif. it does not come for free, bestie π
π NOTES π
- chapter Multi-page Images of the Img manual page describes the handling of images with multiple pages. go read it if you're doing multi-page stuff, fr fr.
π OPTIONS π
the handler provides the following options:
-verbosebool β this option is supported for reading and writing. available since version2.0. if set totrue, additional information about the read or written image is printed tostdout. default isfalse. so it yaps about what it's doing when you ask it to π-indexinteger β this option is supported for reading only. available since version1.2.4. reads the page at the specified index. the first page is at index0. default is0. so index0is the main character and everyone else is just a page in her story π
π 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
(the whole squad. yes, img-gif is listed in its own SEE ALSO. iconic 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 img-gif, version 2.1, living in the Img manual. thanks for reading, go make something cute, and remember: package require img::gif or it literally won't 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