]>
Commit | Line | Data |
---|---|---|
80ed523f | 1 | .\" $Id: tiffset.1,v 1.5 2011-03-26 12:07:20 fwarmerdam Exp $ |
8414a40c VZ |
2 | .\" |
3 | .\" Copyright (c) 1988-1997 Sam Leffler | |
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc. | |
5 | .\" | |
6 | .\" Permission to use, copy, modify, distribute, and sell this software and | |
7 | .\" its documentation for any purpose is hereby granted without fee, provided | |
8 | .\" that (i) the above copyright notices and this permission notice appear in | |
9 | .\" all copies of the software and related documentation, and (ii) the names of | |
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or | |
11 | .\" publicity relating to the software without the specific, prior written | |
12 | .\" permission of Sam Leffler and Silicon Graphics. | |
13 | .\" | |
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, | |
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY | |
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. | |
17 | .\" | |
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR | |
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, | |
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF | |
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | |
23 | .\" OF THIS SOFTWARE. | |
24 | .\" | |
25 | .if n .po 0 | |
26 | .TH TIFFSET 1 "November 21, 2004" "libtiff" | |
27 | .SH NAME | |
28 | tiffset \- set a field in a | |
29 | .SM TIFF | |
30 | header | |
31 | .SH SYNOPSIS | |
32 | .B tiffset | |
33 | [ | |
80ed523f | 34 | .I options |
8414a40c VZ |
35 | ] |
36 | .I filename.tif | |
37 | .SH DESCRIPTION | |
38 | .I Tiffset | |
39 | sets the value of a | |
40 | .SM TIFF | |
41 | header to a specified value. | |
42 | .SH OPTIONS | |
43 | .TP | |
80ed523f VZ |
44 | .BI \-d " dirnumber" |
45 | change the current directory (starting at 0). | |
46 | .TP | |
47 | .BI \-s " tagnumber" "\fR [\fP" " count" "\fR ]\fP" " value ..." | |
8414a40c VZ |
48 | Set the value of the named tag to the value or values specified. |
49 | .TP | |
80ed523f VZ |
50 | .BI \-sd " diroffset" |
51 | change the current directory by offset. | |
52 | .TP | |
53 | .BI \-sf " tagnumber filename" | |
8414a40c VZ |
54 | Set the value of the tag to the contents of filename. This option is |
55 | supported for ASCII tags only. | |
56 | .SH EXAMPLES | |
57 | The following example sets the image description tag (270) of a.tif to | |
58 | the contents of the file descrip: | |
59 | .RS | |
60 | .nf | |
80ed523f | 61 | tiffset \-sf 270 descrip a.tif |
8414a40c VZ |
62 | .fi |
63 | .RE | |
64 | .PP | |
65 | The following example sets the artist tag (315) of a.tif to the string | |
80ed523f | 66 | ``Anonymous'': |
8414a40c VZ |
67 | .RS |
68 | .nf | |
80ed523f | 69 | tiffset \-s 315 Anonymous a.tif |
8414a40c VZ |
70 | .fi |
71 | .RE | |
72 | .PP | |
73 | This example sets the resolution of the file a.tif to 300 dpi: | |
74 | .RS | |
75 | .nf | |
80ed523f VZ |
76 | tiffset \-s 296 2 a.tif |
77 | tiffset \-s 282 300.0 a.tif | |
78 | tiffset \-s 283 300.0 a.tif | |
79 | .fi | |
80 | .RE | |
81 | .PP | |
82 | Set the photometric interpretation of the third page of a.tif to | |
83 | min-is-black (ie. inverts it): | |
84 | .RS | |
85 | .nf | |
86 | tiffset -d 2 -s 262 1 a.tif | |
8414a40c VZ |
87 | .fi |
88 | .RE | |
89 | .SH "SEE ALSO" | |
90 | .BR tiffdump (1), | |
91 | .BR tiffinfo (1), | |
92 | .BR tiffcp (1), | |
93 | .BR libtiff (3TIFF) | |
94 | .PP | |
95 | Libtiff library home page: | |
96 | .BR http://www.remotesensing.org/libtiff/ |