roentgen b75cab
.\" $Id: tiffcmp.1,v 1.6 2009-08-24 19:13:40 bfriesen 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 TIFFCMP 1 "November 2, 2005" "libtiff"
roentgen b75cab
.SH NAME
roentgen b75cab
tiffcmp \- compare two
roentgen b75cab
.SM TIFF
roentgen b75cab
files
roentgen b75cab
.SH SYNOPSIS
roentgen b75cab
.B tiffcmp
roentgen b75cab
[
roentgen b75cab
.I options
roentgen b75cab
]
roentgen b75cab
.I "file1.tif file2.tif"
roentgen b75cab
.SH DESCRIPTION
roentgen b75cab
.I Tiffcmp
roentgen b75cab
compares the tags and data in two files created according
roentgen b75cab
to the Tagged Image File Format, Revision 6.0.
roentgen b75cab
The schemes used for compressing data in each file
roentgen b75cab
are immaterial when data are compared\-data are compared on
roentgen b75cab
a scanline-by-scanline basis after decompression.
roentgen b75cab
Most directory tags are checked; notable exceptions are:
roentgen b75cab
.IR GrayResponseCurve ,
roentgen b75cab
.IR ColorResponseCurve ,
roentgen b75cab
and
roentgen b75cab
.IR ColorMap
roentgen b75cab
tags.
roentgen b75cab
Data will not be compared if any of the
roentgen b75cab
.IR BitsPerSample ,
roentgen b75cab
.IR SamplesPerPixel ,
roentgen b75cab
or
roentgen b75cab
.I ImageWidth
roentgen b75cab
values are not equal.
roentgen b75cab
By default,
roentgen b75cab
.I tiffcmp
roentgen b75cab
will terminate if it encounters any difference.
roentgen b75cab
.SH OPTIONS
roentgen b75cab
.TP
roentgen b75cab
.B \-l
roentgen b75cab
List each byte of image data that differs between the files.
roentgen b75cab
.TP
roentgen b75cab
.BI \-z " number"
roentgen b75cab
List specified number of image data bytes that differs between the files.
roentgen b75cab
.TP
roentgen b75cab
.B \-t
roentgen b75cab
Ignore any differences in directory tags.
roentgen b75cab
.SH BUGS
roentgen b75cab
Tags that are not recognized by the library are not
roentgen b75cab
compared; they may also generate spurious diagnostics.
roentgen b75cab
.PP
roentgen b75cab
The image data of tiled files is not compared, since the
roentgen b75cab
.I TIFFReadScanline()
roentgen b75cab
function is used.  An error will be reported for tiled files.
roentgen b75cab
.PP
roentgen b75cab
The pixel and/or sample number reported in differences may be off
roentgen b75cab
in some exotic cases. 
roentgen b75cab
.SH "SEE ALSO"
roentgen b75cab
.BR pal2rgb (1),
roentgen b75cab
.BR tiffinfo (1),
roentgen b75cab
.BR tiffcp (1),
roentgen b75cab
.BR tiffmedian (1),
roentgen b75cab
.BR libtiff (3TIFF)
roentgen b75cab
.PP
roentgen b75cab
Libtiff library home page:
roentgen b75cab
.BR http://www.remotesensing.org/libtiff/