Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/tools/tiffset.rst

raw
1 tiffset
2 ========
3
4 .. program:: tiffset
5
6 Synopsis
7 --------
8
9 **tiffset** [ *options* ] *filename.tif*
10
11 Description
12 -----------
13
14 :program:`tiffset` sets the value of a TIFF header to a specified value
15 or removes an existing setting.
16
17 Options
18 -------
19
20 .. option:: -d dirnumber
21
22 Change the current directory (starting at 0).
23
24 .. option:: -s tagnumber [ count ] value …
25
26 Set the value of the named tag to the value or values specified.
27
28 .. option:: -sd diroffset
29
30 Change the current directory by offset.
31
32 .. option:: -sf tagnumber filename
33
34 Set the value of the tag to the contents of filename. This option is
35 supported for ASCII tags only.
36
37 .. option:: -u tagnumber
38
39 Unset the tag.
40
41 Examples
42 --------
43
44 The following example sets the image description tag (270) of :file:`a.tif` to
45 the contents of the file :file:`descrip`:
46
47 .. highlight:: shell
48
49 ::
50
51 tiffset -sf 270 descrip a.tif
52
53 The following example sets the artist tag (315) of :file:`a.tif` to the string
54 ``Anonymous``:
55
56 ::
57
58 tiffset -s 315 Anonymous a.tif
59
60
61 This example sets the resolution of the file :file:`a.tif` to 300 dpi:
62
63 ::
64
65 tiffset -s 296 2 a.tif
66 tiffset -s 282 300.0 a.tif
67 tiffset -s 283 300.0 a.tif
68
69 Set the photometric interpretation of the third page of :file:`a.tif` to
70 min-is-black (ie. inverts it):
71
72 ::
73
74 tiffset -d 2 -s 262 1 a.tif
75
76 See also
77 --------
78
79 :doc:`tiffdump` (1),
80 :doc:`tiffinfo` (1),
81 :doc:`tiffcp` (1),
82 :doc:`/functions/libtiff` (3tiff)