roentgen b75cab
.\" $Id: tiffset.1,v 1.5 2011-03-26 12:07:20 fwarmerdam Exp $
roentgen b75cab
.\"
roentgen b75cab
.\" Copyright (c) 1988-1997 Sam Leffler
roentgen b75cab
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
roentgen b75cab
.\"
roentgen b75cab
.\" Permission to use, copy, modify, distribute, and sell this software and 
roentgen b75cab
.\" its documentation for any purpose is hereby granted without fee, provided
roentgen b75cab
.\" that (i) the above copyright notices and this permission notice appear in
roentgen b75cab
.\" all copies of the software and related documentation, and (ii) the names of
roentgen b75cab
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
roentgen b75cab
.\" publicity relating to the software without the specific, prior written
roentgen b75cab
.\" permission of Sam Leffler and Silicon Graphics.
roentgen b75cab
.\" 
roentgen b75cab
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
roentgen b75cab
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
roentgen b75cab
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
roentgen b75cab
.\" 
roentgen b75cab
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
roentgen b75cab
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
roentgen b75cab
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
roentgen b75cab
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
roentgen b75cab
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
roentgen b75cab
.\" OF THIS SOFTWARE.
roentgen b75cab
.\"
roentgen b75cab
.if n .po 0
roentgen b75cab
.TH TIFFSET 1 "November 21, 2004" "libtiff"
roentgen b75cab
.SH NAME
roentgen b75cab
tiffset \- set a field in a
roentgen b75cab
.SM TIFF
roentgen b75cab
header
roentgen b75cab
.SH SYNOPSIS
roentgen b75cab
.B tiffset
roentgen b75cab
[
roentgen b75cab
.I options
roentgen b75cab
]
roentgen b75cab
.I filename.tif
roentgen b75cab
.SH DESCRIPTION
roentgen b75cab
.I Tiffset
roentgen b75cab
sets the value of a
roentgen b75cab
.SM TIFF
roentgen b75cab
header to a specified value.
roentgen b75cab
.SH OPTIONS
roentgen b75cab
.TP
roentgen b75cab
.BI \-d " dirnumber"
roentgen b75cab
change the current directory (starting at 0).
roentgen b75cab
.TP
roentgen b75cab
.BI \-s " tagnumber" "\fR [\fP" " count" "\fR ]\fP" " value ..."
roentgen b75cab
Set the value of the named tag to the value or values specified.
roentgen b75cab
.TP
roentgen b75cab
.BI \-sd " diroffset"
roentgen b75cab
change the current directory by offset.
roentgen b75cab
.TP
roentgen b75cab
.BI \-sf " tagnumber filename"
roentgen b75cab
Set the value of the tag to the contents of filename.  This option is
roentgen b75cab
supported for ASCII tags only.
roentgen b75cab
.SH EXAMPLES
roentgen b75cab
The following example sets the image description tag (270) of a.tif to
roentgen b75cab
the contents of the file descrip:
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiffset \-sf 270 descrip a.tif
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.PP
roentgen b75cab
The following example sets the artist tag (315) of a.tif to the string
roentgen b75cab
``Anonymous'':
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiffset \-s 315 Anonymous a.tif
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.PP
roentgen b75cab
This example sets the resolution of the file a.tif to 300 dpi:
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiffset \-s 296 2 a.tif
roentgen b75cab
tiffset \-s 282 300.0 a.tif
roentgen b75cab
tiffset \-s 283 300.0 a.tif
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.PP
roentgen b75cab
Set the photometric interpretation of the third page of a.tif to
roentgen b75cab
min-is-black (ie. inverts it):
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiffset -d 2 -s 262 1 a.tif
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.SH "SEE ALSO"
roentgen b75cab
.BR tiffdump (1),
roentgen b75cab
.BR tiffinfo (1),
roentgen b75cab
.BR tiffcp (1),
roentgen b75cab
.BR libtiff (3TIFF)
roentgen b75cab
.PP
roentgen b75cab
Libtiff library home page:
roentgen b75cab
.BR http://www.remotesensing.org/libtiff/