summaryrefslogtreecommitdiffstats
path: root/tkimg/doc/img-png.man
blob: 44898850f7f26f5dcce638bf0d438d02381bc762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[comment {-*- tcl -*- doctools}]
[vset FORMATNAME png]
[vset FORMATFULLNAME {Portable Network Graphics format}]

[include format-header.inc]

This handler provides new additional configuration options. See
section [sectref {PNG OPTIONS}] for more detailed explanations.


[include format-middle.inc]


In addition the value for the option is treated as list and may
contain any of the special options listed in section

[sectref {PNG OPTIONS}].

[list_end]



[section {PNG OPTIONS}]

The handler provides the following options:

[list_begin definitions]

[lst_item "[option -verbose] [arg bool]"]

This option is supported for reading only.
[nl]
If set to [const true], additional information about the file format
is printed to stdout. Default is [const false].

[lst_item "[option -gamma] [arg float]"]

This option is supported for reading only.
[nl]
Use the specified gamma value when reading an image.
This option overwrites gamma values specified in the file.
If this option is not specified and no gamma value is in the file, 
a default value of 1.0 is used.

[lst_item "[option -matte] [arg bool]"]

This option is supported for reading only.
[nl]
If set to [const false], a matte (alpha) channel is ignored
during reading or writing. Default is [const true].


[lst_item "[option -alpha] [arg float]"]

This option is supported for reading only.
[nl]
An additional alpha filtering for the overall image, which
allows the background on which the image is displayed to show through.
This usually also has the effect of desaturating the image.
The alphaValue must be between 0.0 and 1.0. 
Specifying an alpha value, overrides the setting of the matte flag,
i.e. reading a file which has no alpha channel (Greyscale, RGB) will
add an alpha channel to the image independent of the matte flag setting.

[list_end]

The handler provides no true write options at all, but accepts pairs of keys
and values when writing a PNG file. Each pair will be written as a
named text chunk where the key provides the name of the chunk and the
value its contents.

For example

[example {
    png Author <name> Title <title> Description ...
}]


[section TRANSPARENCY]

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

[package Tk] 8.3.



[list_begin definitions]
[include format-footer.inc]