tiffset.1 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .\"
  2. .\" Copyright (c) 1988-1997 Sam Leffler
  3. .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
  4. .\"
  5. .\" Permission to use, copy, modify, distribute, and sell this software and
  6. .\" its documentation for any purpose is hereby granted without fee, provided
  7. .\" that (i) the above copyright notices and this permission notice appear in
  8. .\" all copies of the software and related documentation, and (ii) the names of
  9. .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
  10. .\" publicity relating to the software without the specific, prior written
  11. .\" permission of Sam Leffler and Silicon Graphics.
  12. .\"
  13. .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  14. .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  15. .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  16. .\"
  17. .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  21. .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  22. .\" OF THIS SOFTWARE.
  23. .\"
  24. .if n .po 0
  25. .TH TIFFSET 1 "December 3, 2012" "libtiff"
  26. .SH NAME
  27. tiffset \- set or unset a field in a
  28. .SM TIFF
  29. header
  30. .SH SYNOPSIS
  31. .B tiffset
  32. [
  33. .I options
  34. ]
  35. .I filename.tif
  36. .SH DESCRIPTION
  37. .I Tiffset
  38. sets the value of a
  39. .SM TIFF
  40. header to a specified value or removes an existing setting.
  41. .SH OPTIONS
  42. .TP
  43. .BI \-d " dirnumber"
  44. change the current directory (starting at 0).
  45. .TP
  46. .BI \-s " tagnumber" "\fR [\fP" " count" "\fR ]\fP" " value ..."
  47. Set the value of the named tag to the value or values specified.
  48. .TP
  49. .BI \-sd " diroffset"
  50. change the current directory by offset.
  51. .TP
  52. .BI \-sf " tagnumber filename"
  53. Set the value of the tag to the contents of filename. This option is
  54. supported for ASCII tags only.
  55. .TP
  56. .BI \-u " tagnumber"
  57. Unset the tag.
  58. .SH EXAMPLES
  59. The following example sets the image description tag (270) of a.tif to
  60. the contents of the file descrip:
  61. .RS
  62. .nf
  63. tiffset \-sf 270 descrip a.tif
  64. .fi
  65. .RE
  66. .PP
  67. The following example sets the artist tag (315) of a.tif to the string
  68. ``Anonymous'':
  69. .RS
  70. .nf
  71. tiffset \-s 315 Anonymous a.tif
  72. .fi
  73. .RE
  74. .PP
  75. This example sets the resolution of the file a.tif to 300 dpi:
  76. .RS
  77. .nf
  78. tiffset \-s 296 2 a.tif
  79. tiffset \-s 282 300.0 a.tif
  80. tiffset \-s 283 300.0 a.tif
  81. .fi
  82. .RE
  83. .PP
  84. Set the photometric interpretation of the third page of a.tif to
  85. min-is-black (ie. inverts it):
  86. .RS
  87. .nf
  88. tiffset -d 2 -s 262 1 a.tif
  89. .fi
  90. .RE
  91. .SH "SEE ALSO"
  92. .BR tiffdump (1),
  93. .BR tiffinfo (1),
  94. .BR tiffcp (1),
  95. .BR libtiff (3TIFF)
  96. .PP
  97. Libtiff library home page:
  98. .BR http://www.simplesystems.org/libtiff/