img-gif(3tk)
π img-gif β Graphics Interchange Format (gif) π
okay bestie, welcome to the Img manual, and specifically the lil corner of it that handles gifs. yes, those gifs. let's get into it π
β¨ SYNOPSIS β¨
package require img::gif ?2.1?
πΈ DESCRIPTION πΈ
package require img::gif
So here's the thing β like every single package in Img, this one does not hand you any brand new commands. Nope. It does something way cuter: it extends the existing Tk command image, so that command suddenly understands files full of raster images in the Graphics Interchange Format (gif). To be super specific about it, img::gif extends Tk's photo image type. main character energy, honestly π
The name of the new format handler is gif. This handler brings along some new additional configuration options. Peep the Options section below for the full tea.
And all of the above means that in a call like:
image create photo ?name? ?options?
- Image data in gif format (options
-dataand-file) is detected automatically. no input from you needed, it just knows β¨ - The format name
gifis recognized by the option-format.
On top of that, the value of option -format is treated as a list and may contain any of the special options listed in the Options section. yes, it's giving multitasking π
π¨ important bestie alert π¨ The packageimg::gifis not loaded when you dopackage require Img. You have to load it explicitly, like:
package require img::gif
π NOTES π
- Chapter Multi-page Images of of the Img manual page describes the handling of images with multiple pages. (yes that "of of" is real, we don't gatekeep, we just report π«Ά)
π OPTIONS π
The handler provides the following options:
-verbosebool β This option is supported for reading and writing. Available since version2.0. If set to true, additional information about the read or written image is printed tostdout. Default isfalse. (so like, if you're nosy, this one's for you π)-indexinteger β This option is supported for reading only. Available since version1.2.4. Read the page at specified index. The first page is at index0. Default is0. (yes bestie, pages start at zero, it's a whole thing π)
π 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
like, the whole squad π«Ά go say hi to all of them.
Β©οΈ 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 β¨ you just read img-gif, version 2.1, from the Img manual. slay, ate, no crumbs left. go make some gifs, you absolute icon ππ
π¦ where this page comes from
- ubuntu resolute: libtk-img-doc 1:2.1.0+dfsg1-1 Β· Tcl
- ubuntu stonking: libtk-img-doc 1:2.1.1+dfsg1-2 Β· Tcl
- 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