BSD Ports

graphics/tkpng 0.9_2 MidnightBSD

PNG support for Tcl/Tk

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
4992153d6c
License
TclTk
Categories
graphics, tk

Description

This port implements support for loading and using PNG images with Tcl/Tk. Although other extensions such as Img also add support for PNG images, I wanted something that was lightweight, did not depend on libpng, and which would be suitable for inclusion in the Tk core, as Tk does not currently support any image formats natively that take advantage of its internal support for alpha blending, and alpha antialiasing and drop shadows really go a long way toward beautifying Tk applications.

At this time, the package supports reading images from files or binary data. Base64 decoding is supported as of version 0.6. Exporting images to PNG format is not supported yet.

The package supports the full range of color types, channels and bit depths from 1 bit black & white to 16 bit per channel full color with alpha (64 bit RGBA) and interlacing. Ancillary "chunks" such as gamma, color profile, and text fields are ignored, although they are checked at a minimum for correct CRC.

In the other systems

SystemPortVersion
MidnightBSDgraphics/tkpng0.9_2
FreeBSDgraphics/tkpng0.9_1
OpenBSDgraphics/tkpng0.9p2
DragonFlygraphics/tkpng0.9_1
HardenedBSDgraphics/tkpng0.9_1
GhostBSDgraphics/tkpng0.9_1

Install

Binary package:

mport install tkpng

From mports:

cd /usr/mports/graphics/tkpng && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	tkpng>0:graphics/tkpng

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
tk:tea tar:tgz
Service scripts
none

Files

distinfo 1
FileSizeSHA256
tkpng0.9.tgz12780492f361d4f43c3a0638f85f87af6cef30c63a1896fa59a9220bcfab4852ab10fb
Master sites 1
  • SF

Commit history 1

DateCommitCreditsLog message
4992153d6c Lucas Holt graphics/tkpng: recognize MidnightBSD
AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>