Img Documentation

# Img Manual

Introduction | Installation | Format handlers | External libraries

### Introduction

Img is a Tk extension, adding support for many other Image formats: BMP, XBM, XPM, GIF (with transparency, but without LZW), PNG, JPEG, TIFF and postscript. This version only works with Tcl/Tk 8.0 or higher (any patchlevel, tested up to 8.4a1). If you are using Tk4.2 or lower, please stick with Img1.1.4 (which is still available).

Currently there are two identical source distributions:

| img124.zip | (for Windows) | (about 1.8 Mb)
| img1.2.4.tar.gz | (for Unix) | (about 1.6 Mb)

And a binary distribution

| img124.exe | (for Windows) | (about 800 kb)

If you want to write images to disk which contain transparency information (e.g. GIF89 or PNG with alpha channel), you need at least Tk8.3.

In stead of LZW the run-length encoding of Hutchison Avenue Software Corporation is used, also known as miGIF compression. The miGIF compression routines do not, strictly speaking, generate files conforming to the GIF spec, since the image data is not LZW-compressed (this is the point: in order to avoid transgression of the Unisys patent on the LZW algorithm.) However, miGIF generates data streams that any reasonably sane LZW decompresser will decompress to what we want.