img-pcx(n)
img-pcx π
okay bestie, welcome to the Paintbrush corner of the Img manual β this page is img-pcx(n), like, the manual-entry-flavoured one. we're talking the Tcl/Tk Img family, and this is the .pcx handler. let's go π
β¨ NAME β¨
img-pcx β Paintbrush format (pcx). that's it, that's the whole vibe. ποΈ
β¨ SYNOPSIS β¨
package require img::pcx ?2.1?
β¨ DESCRIPTION β¨
package require img::pcx
so here's the thing, bestie: like every single package in Img, this one does not hand you new commands. nope. it extends the Tk command image that you already know and love, so that image suddenly supports files holding raster images in the Paintbrush format (pcx). more specifically, img::pcx extends Tk's photo image type β yeah, that one: https://www.tcl.tk/man/tcl9.0/TkCmd/photo.html. π¦
the name of the new format handler is pcx. and this handler brings new additional configuration options with it. slide into the Options section for the full tea. π
all of the above means that in a call like:
image create photo ?name? ?options?
- image data in pcx format (the options
-dataand-file) is detected automatically. no cap, you don't have to tell it. β¨ - the format name
pcxis recognized by the option-format. π
plus β and this is the cute part β the value of option -format is treated as a list and may contain any of the special options listed in section Options. it's giving multitasking icon.
the package img::pcx is a sub-package of Img. you can load it as a part of the complete Img support via package require Img, or on its own via package require img::pcx. either way she's ready. π«Ά
π SUPPORTED TYPES π
this format handler supports the following image types:
- 1-bit pixels: Black and White. π€π€
- 8-bit pixels: Grayscale or indexed. π«οΈ
- 24-bit pixels: Truecolor (RGB, 8-bit channels). π¨
and every single one of those image types may be either uncompressed or run-length encoded. slay.
now the read/write receipts, laid out nice for you:
- 1-bit β read via
-file: Yes Β· read via-data: Yes Β· write via-file: No Β· write via-data: No - 8-bit β read via
-file: Yes Β· read via-data: Yes Β· write via-file: No Β· write via-data: No - 24-bit β read via
-file: Yes Β· read via-data: Yes Β· write via-file: Yes Β· write via-data: Yes
so likeβ¦ she reads everything but she only writes 24-bit. know your limits, queen. π
π NOTES π
- Chapter Image Metadata of the Img manual page describes the parameters of the resolution related options. go read that if you're nosy (affectionate). π
π OPTIONS π
the handler provides the following options:
-verbose boolβ this option is supported for reading and writing. available since version1.3. if set totrue, additional information about the read or written image is printed tostdout. default isfalse. so basically it narrates what it's doing. main character behaviour honestly. π£οΈ-compression stringβ this option is supported for writing only. available since version1.3. set the compression mode to eithernoneorrle. default isrle. ποΈ-resolution xres ?yres?β this option is supported for writing only. available since version2.0. set the resolution values of the written image file. ifyresis not specified, it is set to the value ofxres(she matches her own energy, iconic). if the option is not specified, the DPI and aspect values of the metadata dictionary are written. if no metadata values are available, no resolution values are written. π-xresolution xresβ this option is supported for writing only. available since version2.0. set the horizontal resolution value of the written image file. β‘οΈ-yresolution yresβ this option is supported for writing only. available since version2.0. set the vertical resolution value of the written image file. β¬οΈ
heads up bestie:-compression,-resolution,-xresolutionand-yresolutionare write-only. don't try to read with them, it's not that kind of party. π«
π 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-pcx is listed in the see-also of img-pcx. she contains multitudes. self-love. π
)
Β©οΈ 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 lil' beauty is img-pcx, version 2.1 β straight out of the img-pcx(n) manual entry, date and all. go forth and read your Paintbrush files. 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