1img-tiff(n) Img img-tiff(n)
2
3
4
6 img-tiff - Img, Tagged Image File Format (tiff)
7
9 package require Tk
10
11 package require img::tiff ?1.4?
12
13 image create photo ?name? ?options?
14
15
17 The package img::tiff is a sub-package of Img. It can be loaded as a
18 part of the complete Img support, via package require Img, or on its
19 own, via package require img::tiff.
20
21 Like all packages of Img it does not provide new commands, but extends
22 the existing Tk command image so that it supports files containing
23 raster images in the Tagged Image File Format (tiff). More specifically
24 img::tiff extends Tk's photo image type.
25
26 The name of the new format handler is tiff. This handler provides new
27 additional configuration options. See section TIFF OPTIONS for more
28 detailed explanations.
29
30 All of the above means that in a call like
31
32 image create photo ?name? ?options?
33
34 [1] Image data in tiff format (options -data and -file) is detected
35 automatically.
36
37 [2] The format name tiff is recognized by the option -format. In
38 addition the value for the option is treated as list and may
39 contain any of the special options listed in section TIFF
40 OPTIONS.
41
43 The handler provides three options, one for reading from a TIFF image,
44 the other two influencing the writing of such.
45
46 -index n
47 This option is for reading from TIFF files containing more than
48 one image (multi-page TIFF. When specified it will read the n'th
49 image in the data. The first image is at index 0 and will be
50 read by default, i.e. when the option is not specified.
51
52 -compression type
53 This option specifies the type of compression to use when writ‐
54 ing TIFF data. It has to be one of none, jpeg, packbits, or
55 deflate. The default is none.
56
57 -byteorder type
58 This option specifies the byteorder to use when writing TIFF
59 data. It has to be one of bigendian, littleendian, network,
60 smallendian, or the empty string. The default is the empty
61 string.
62
63 The values bigendian and network are aliases of each other, as
64 are littleendian and smallendian.
65
67 img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
68 pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
69 img-tiff, img-window, img-xbm, img-xpm
70
72 image handling, tiff, tk
73
75 Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
76
77
78
79
80img-tiff 1.4 img-tiff(n)