.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "TIFFSET" "1" "Jun 10, 2023" "4.5" "LibTIFF"
.SH NAME
tiffset \- set or unset a field in a TIFF header
.SH SYNOPSIS
.sp
\fBtiffset\fP [ \fIoptions\fP ] \fIfilename.tif\fP
.SH DESCRIPTION
.sp
\fBtiffset\fP sets the value of a TIFF header to a specified value
or removes an existing setting.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-d dirnumber
Change the current directory (starting at 0).
.UNINDENT
.INDENT 0.0
.TP
.B \-s tagnumber [ count ] value …
Set the value of the named tag to the value or values specified.
.UNINDENT
.INDENT 0.0
.TP
.B \-sd diroffset
Change the current directory by offset.
.UNINDENT
.INDENT 0.0
.TP
.B \-sf tagnumber filename
Set the value of the tag to the contents of filename.  This option is
supported for ASCII tags only.
.UNINDENT
.INDENT 0.0
.TP
.B \-u tagnumber
Unset the tag.
.UNINDENT
.SH EXAMPLES
.sp
The following example sets the image description tag (270) of \fBa.tif\fP to
the contents of the file \fBdescrip\fP:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
tiffset \-sf 270 descrip a.tif
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The following example sets the artist tag (315) of \fBa.tif\fP to the string
\fBAnonymous\fP:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
tiffset \-s 315 Anonymous a.tif
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
This example sets the resolution of the file \fBa.tif\fP to 300 dpi:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
tiffset \-s 296 2 a.tif
tiffset \-s 282 300.0 a.tif
tiffset \-s 283 300.0 a.tif
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Set the photometric interpretation of the third page of \fBa.tif\fP to
min\-is\-black (ie. inverts it):
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
tiffset \-d 2 \-s 262 1 a.tif
.ft P
.fi
.UNINDENT
.UNINDENT
.SH SEE ALSO
.sp
\fI\%tiffdump\fP (1),
\fI\%tiffinfo\fP (1),
\fI\%tiffcp\fP (1),
\fI\%libtiff\fP (3tiff)
.SH AUTHOR
LibTIFF contributors
.SH COPYRIGHT
1988-2022, LibTIFF contributors
.\" Generated by docutils manpage writer.
.
