1img-sgi(n)                            Img                           img-sgi(n)
2
3
4

NAME

6       img-sgi - Img, SGI Native Format (sgi)
7

SYNOPSIS

9       package require Tk
10
11       package require img::sgi  ?1.4?
12
13       image create photo ?name? ?options?
14
15

DESCRIPTION

17       The  package  img::sgi  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::sgi.
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  SGI  Native  Format  (sgi).  More specifically
24       img::sgi extends Tk's photo image type.
25
26       The name of the new format handler is sgi.  This handler  provides  new
27       additional  configuration  options.  See  section  SGI 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 sgi format (options -data and -file)  is  detected
35              automatically.
36
37       [2]    The  format  name  sgi  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 SGI
40              OPTIONS.
41

SUPPORTED SGI TYPES

43        24-bit pixels: True-color (RGB, each channel 8 bit).
44        32-bit pixels: True-color with alpha channel (RGBA, each channel 8 bit).
45        48-bit pixels: True-color (RGB, each channel 16 bit).
46        64-bit pixels: True-color with alpha channel (RGBA, each channel 16 bit).
47
48        List of currently supported features:
49
50        Type   |     Read      |     Write     |
51               | -file | -data | -file | -data |
52        ----------------------------------------
53        24-bit | Yes   | Yes*  | Yes   | Yes*  |
54        32-bit | Yes   | Yes*  | Yes   | Yes*  |
55        48-bit | Yes   | Yes*  | No    | No    |
56        64-bit | Yes   | Yes*  | No    | No    |
57
58        *: Implemented by reading/writing from/to a temporary file. This will
59           be slow for larger images.
60
61        All images types may be either uncompressed or run-length encoded.
62
63

SGI OPTIONS

65       The handler provides the following options:
66
67       -verbose bool
68              This option is supported for reading and writing.
69
70              If set to true, additional information about  the  loaded/stored
71              image is printed to stdout. Default is false.
72
73       -compression type
74              This option is supported for writing only.
75
76              Set the compression mode to either none or rle.  Default is rle.
77
78       -matte bool
79              This option is supported for reading and writing.
80
81              If set to false, a matte (alpha) channel is ignored during read‐
82              ing or writing. Default is true.
83

SEE ALSO

85       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
86       pixmap,  img-png,  img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
87       img-tiff, img-window, img-xbm, img-xpm
88

KEYWORDS

90       image handling, sgi, tk
91
93       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
94
95
96
97
98img-sgi                               1.4                           img-sgi(n)
Impressum