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