| 1 |
tiffcmp |
| 2 |
======= |
| 3 |
|
| 4 |
.. program:: tiffcmp |
| 5 |
|
| 6 |
Synopsis |
| 7 |
-------- |
| 8 |
|
| 9 |
**tiffcmp** [ *options* ] *file1.tif* *file2.tif* |
| 10 |
|
| 11 |
Description |
| 12 |
----------- |
| 13 |
|
| 14 |
:program:`tiffcmp` compares the tags and data in two files created according |
| 15 |
to the Tagged Image File Format, Revision 6.0. |
| 16 |
The schemes used for compressing data in each file |
| 17 |
are immaterial when data are compared\-data are compared on |
| 18 |
a scanline-by-scanline basis after decompression. |
| 19 |
Most directory tags are checked; notable exceptions are: |
| 20 |
``GrayResponseCurve``, ``ColorResponseCurve``, and ``ColorMap`` tags. |
| 21 |
Data will not be compared if any of the ``BitsPerSample``, |
| 22 |
``SamplesPerPixel``, or ``ImageWidth`` values are not equal. |
| 23 |
By default, :program:`tiffcmp` will terminate if it encounters any difference. |
| 24 |
|
| 25 |
Options |
| 26 |
------- |
| 27 |
|
| 28 |
.. option:: -l |
| 29 |
|
| 30 |
List each byte of image data that differs between the files. |
| 31 |
|
| 32 |
.. option:: -z number |
| 33 |
|
| 34 |
List specified number of image data bytes that differs between the files. |
| 35 |
|
| 36 |
.. option:: -t |
| 37 |
|
| 38 |
Ignore any differences in directory tags. |
| 39 |
|
| 40 |
Bugs |
| 41 |
---- |
| 42 |
|
| 43 |
Tags that are not recognized by the library are not |
| 44 |
compared; they may also generate spurious diagnostics. |
| 45 |
|
| 46 |
The image data of tiled files is not compared, since the :c:func:`TIFFReadScanline` |
| 47 |
function is used. An error will be reported for tiled files. |
| 48 |
|
| 49 |
The pixel and/or sample number reported in differences may be off |
| 50 |
in some exotic cases. |
| 51 |
|
| 52 |
See also |
| 53 |
-------- |
| 54 |
|
| 55 |
:doc:`pal2rgb` (1), |
| 56 |
:doc:`tiffinfo` (1), |
| 57 |
:doc:`tiffcp` (1), |
| 58 |
:doc:`tiffmedian` (1), |
| 59 |
:doc:`/functions/libtiff` (3tiff) |