tiffcrop.1.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. <!-- Creator : groff version 1.18.1 -->
  2. <!-- CreationDate: Sat Feb 24 18:37:20 2007 -->
  3. <html>
  4. <head>
  5. <meta name="generator" content="groff -Thtml, see www.gnu.org">
  6. <meta name="Content-Style" content="text/css">
  7. <title>TIFFCROP</title>
  8. </head>
  9. <body>
  10. <h1 align=center>TIFFCROP</h1>
  11. <a href="#NAME">NAME</a><br>
  12. <a href="#SYNOPSIS">SYNOPSIS</a><br>
  13. <a href="#DESCRIPTION">DESCRIPTION</a><br>
  14. <a href="#OPTIONS">OPTIONS</a><br>
  15. <a href="#EXAMPLES">EXAMPLES</a><br>
  16. <a href="#SEE ALSO">SEE ALSO</a><br>
  17. <hr>
  18. <a name="NAME"></a>
  19. <h2>NAME</h2>
  20. <!-- INDENTATION -->
  21. <table width="100%" border=0 rules="none" frame="void"
  22. cols="2" cellspacing="0" cellpadding="0">
  23. <tr valign="top" align="left">
  24. <td width="8%"></td>
  25. <td width="91%">
  26. <p>tiffcrop &minus; copy (and possibly convert and crop or
  27. process) a <small>TIFF</small> file</p>
  28. </td>
  29. </table>
  30. <a name="SYNOPSIS"></a>
  31. <h2>SYNOPSIS</h2>
  32. <!-- INDENTATION -->
  33. <table width="100%" border=0 rules="none" frame="void"
  34. cols="2" cellspacing="0" cellpadding="0">
  35. <tr valign="top" align="left">
  36. <td width="8%"></td>
  37. <td width="91%">
  38. <p><b>tiffcrop</b> [ <i>options</i> ] <i>src1.tif ...
  39. srcN.tif dst.tif</i></p>
  40. </td>
  41. </table>
  42. <a name="DESCRIPTION"></a>
  43. <h2>DESCRIPTION</h2>
  44. <!-- INDENTATION -->
  45. <table width="100%" border=0 rules="none" frame="void"
  46. cols="2" cellspacing="0" cellpadding="0">
  47. <tr valign="top" align="left">
  48. <td width="8%"></td>
  49. <td width="91%">
  50. <p><i>tiffcrop</i> combines one or more files created
  51. according to the Tag Image File Format, Revision 6.0 into a
  52. single <small>TIFF</small> file. The output file may be
  53. compressed using a different algorithm than the input files.
  54. <i>tiffcrop</i> is most often used to extract portions of an
  55. image for processing with bar code recognizer or OCR
  56. software when that software cannot restrict the region of
  57. interest to a specific portion of the image or to improve
  58. efficiency when the regions of interest must be rotated.</p>
  59. <!-- INDENTATION -->
  60. <p>By default, <i>tiffcrop</i> will copy all the understood
  61. tags in a <small>TIFF</small> directory of an input file to
  62. the associated directory in the output file.</p>
  63. <!-- INDENTATION -->
  64. <p><i>tiffcrop</i> can be used to reorganize the storage
  65. characteristics of data in a file, and it will alter or
  66. convert the image data content as specified at the same
  67. time, unlike tiffcp.</p>
  68. <!-- INDENTATION -->
  69. <p><i>tiffcrop</i> will behave exactly like tiffcp if none
  70. of the new options are specified.</p>
  71. </td>
  72. </table>
  73. <a name="OPTIONS"></a>
  74. <h2>OPTIONS</h2>
  75. <!-- INDENTATION -->
  76. <table width="100%" border=0 rules="none" frame="void"
  77. cols="2" cellspacing="0" cellpadding="0">
  78. <tr valign="top" align="left">
  79. <td width="8%"></td>
  80. <td width="91%">
  81. <p><b>&minus;N odd|even|#,#-#,#|last</b></p></td>
  82. </table>
  83. <!-- INDENTATION -->
  84. <table width="100%" border=0 rules="none" frame="void"
  85. cols="2" cellspacing="0" cellpadding="0">
  86. <tr valign="top" align="left">
  87. <td width="19%"></td>
  88. <td width="80%">
  89. <p>sequences and ranges of images within file to process.
  90. The words <b>odd</b> or <b>even</b> may be used to specify
  91. all odd or even numbered images. The word <b>last</b> may be
  92. used in place of a number in the sequence to indicate the
  93. final image in the file without knowing how many images
  94. there are. Ranges of images may be specified with a dash and
  95. multiple sets can be indicated by joining them in a
  96. comma-separated list. e.g.. use <b>&minus;N 1,5-7,last</b>
  97. to process the 1st, 5th through 7th, and final image in the
  98. file.</p>
  99. </td>
  100. </table>
  101. <!-- INDENTATION -->
  102. <table width="100%" border=0 rules="none" frame="void"
  103. cols="2" cellspacing="0" cellpadding="0">
  104. <tr valign="top" align="left">
  105. <td width="8%"></td>
  106. <td width="91%">
  107. <p><b>&minus;E top|bottom|left|right</b></p></td>
  108. </table>
  109. <!-- INDENTATION -->
  110. <table width="100%" border=0 rules="none" frame="void"
  111. cols="2" cellspacing="0" cellpadding="0">
  112. <tr valign="top" align="left">
  113. <td width="19%"></td>
  114. <td width="80%">
  115. <p>use the top, bottom, left, or right edge as origin
  116. reference for width and length of crop regions. May be
  117. abbreviated to first letter.</p>
  118. </td>
  119. </table>
  120. <!-- INDENTATION -->
  121. <table width="100%" border=0 rules="none" frame="void"
  122. cols="2" cellspacing="0" cellpadding="0">
  123. <tr valign="top" align="left">
  124. <td width="8%"></td>
  125. <td width="91%">
  126. <p><b>&minus;U in|cm|px</b></p></td>
  127. </table>
  128. <!-- INDENTATION -->
  129. <table width="100%" border=0 rules="none" frame="void"
  130. cols="2" cellspacing="0" cellpadding="0">
  131. <tr valign="top" align="left">
  132. <td width="19%"></td>
  133. <td width="80%">
  134. <p>units to apply to dimensions for margins and crop
  135. regions. Inches or centimeters are converted to pixels using
  136. the resolution unit specified in the TIFF file (which
  137. defaults to inches if not specified in the IFD).</p>
  138. </td>
  139. </table>
  140. <!-- INDENTATION -->
  141. <table width="100%" border=0 rules="none" frame="void"
  142. cols="2" cellspacing="0" cellpadding="0">
  143. <tr valign="top" align="left">
  144. <td width="8%"></td>
  145. <td width="91%">
  146. <p><b>&minus;m #,#,#,#</b></p></td>
  147. </table>
  148. <!-- INDENTATION -->
  149. <table width="100%" border=0 rules="none" frame="void"
  150. cols="2" cellspacing="0" cellpadding="0">
  151. <tr valign="top" align="left">
  152. <td width="19%"></td>
  153. <td width="80%">
  154. <p>margins to be removed from the image. The order must be
  155. top, left, bottom, right with only commas separating the
  156. elements of the list. Margins are scaled according to the
  157. current units and removed before any other extractions are
  158. computed. Capital M was in use.</p>
  159. </td>
  160. </table>
  161. <!-- TABS -->
  162. <table width="100%" border=0 rules="none" frame="void"
  163. cols="5" cellspacing="0" cellpadding="0">
  164. <tr valign="top" align="left">
  165. <td width="10%"></td>
  166. <td width="6%">
  167. <p><b>&minus;X #</b></p>
  168. </td>
  169. <td width="2%"></td>
  170. <td width="80%">
  171. <p>horizontal (X-axis) dimension of a region to extract
  172. relative to the specified origin reference. If the origin is
  173. the top or bottom edge, the X axis value will be assumed to
  174. start at the left edge.</p>
  175. </td>
  176. <td width="0%">
  177. </td>
  178. <tr valign="top" align="left">
  179. <td width="10%"></td>
  180. <td width="6%">
  181. <p><b>&minus;Y #</b></p>
  182. </td>
  183. <td width="2%"></td>
  184. <td width="80%">
  185. <p>vertical (Y-axis) dimension of a region to extract
  186. relative to the specified origin reference. If the origin is
  187. the left or right edge, the Y axis value will be assumed to
  188. start at the top.</p>
  189. </td>
  190. <td width="0%">
  191. </td>
  192. </table>
  193. <!-- INDENTATION -->
  194. <table width="100%" border=0 rules="none" frame="void"
  195. cols="2" cellspacing="0" cellpadding="0">
  196. <tr valign="top" align="left">
  197. <td width="8%"></td>
  198. <td width="91%">
  199. <p><b>&minus;Z #:#,#:#</b></p></td>
  200. </table>
  201. <!-- INDENTATION -->
  202. <table width="100%" border=0 rules="none" frame="void"
  203. cols="2" cellspacing="0" cellpadding="0">
  204. <tr valign="top" align="left">
  205. <td width="19%"></td>
  206. <td width="80%">
  207. <p>zones of the image designated as position X of Y equal
  208. sized portions measured from the reference edge, e.g. 1:3
  209. would be first third of the image starting from the
  210. reference edge minus any margins specified for the confining
  211. edges. Multiple zones can be specified as a comma separated
  212. list but they must reference the same edge. To extract the
  213. top quarter and the bottom third of an image you would use
  214. <b>&minus;Z 1:4,3:3.</b></p>
  215. </td>
  216. </table>
  217. <!-- INDENTATION -->
  218. <table width="100%" border=0 rules="none" frame="void"
  219. cols="2" cellspacing="0" cellpadding="0">
  220. <tr valign="top" align="left">
  221. <td width="8%"></td>
  222. <td width="91%">
  223. <p><b>&minus;F horiz|vert</b></p></td>
  224. </table>
  225. <!-- INDENTATION -->
  226. <table width="100%" border=0 rules="none" frame="void"
  227. cols="2" cellspacing="0" cellpadding="0">
  228. <tr valign="top" align="left">
  229. <td width="19%"></td>
  230. <td width="80%">
  231. <p>flip, i.e. mirror, the image or extracted region
  232. horizontally or vertically.</p>
  233. </td>
  234. </table>
  235. <!-- INDENTATION -->
  236. <table width="100%" border=0 rules="none" frame="void"
  237. cols="2" cellspacing="0" cellpadding="0">
  238. <tr valign="top" align="left">
  239. <td width="8%"></td>
  240. <td width="91%">
  241. <p><b>&minus;R 90|180|270</b></p></td>
  242. </table>
  243. <!-- INDENTATION -->
  244. <table width="100%" border=0 rules="none" frame="void"
  245. cols="2" cellspacing="0" cellpadding="0">
  246. <tr valign="top" align="left">
  247. <td width="19%"></td>
  248. <td width="80%">
  249. <p>rotate the image or extracted region 90, 180, or 270
  250. degrees clockwise.</p>
  251. </td>
  252. </table>
  253. <!-- TABS -->
  254. <table width="100%" border=0 rules="none" frame="void"
  255. cols="5" cellspacing="0" cellpadding="0">
  256. <tr valign="top" align="left">
  257. <td width="10%"></td>
  258. <td width="2%">
  259. <p><b>&minus;I</b></p>
  260. </td>
  261. <td width="6%"></td>
  262. <td width="80%">
  263. <p>invert the colorspace values for grayscale and bi-level
  264. images. This would be used to correct negative images that
  265. have incorrect PHOTOMETRIC INTERPRETATION tags. No support
  266. for color images.</p>
  267. </td>
  268. <td width="0%">
  269. </td>
  270. </table>
  271. <!-- INDENTATION -->
  272. <table width="100%" border=0 rules="none" frame="void"
  273. cols="2" cellspacing="0" cellpadding="0">
  274. <tr valign="top" align="left">
  275. <td width="8%"></td>
  276. <td width="91%">
  277. <p><b>&minus;b</b> <i>image</i></p></td>
  278. </table>
  279. <!-- INDENTATION -->
  280. <table width="100%" border=0 rules="none" frame="void"
  281. cols="2" cellspacing="0" cellpadding="0">
  282. <tr valign="top" align="left">
  283. <td width="19%"></td>
  284. <td width="80%">
  285. <p>subtract the following monochrome image from all others
  286. processed. This can be used to remove a noise bias from a
  287. set of images. This bias image is typically an image of
  288. noise the camera saw with its shutter closed. Bias image
  289. support is not available with options for cropping,
  290. rotating, or inverting the image.</p>
  291. </td>
  292. </table>
  293. <!-- TABS -->
  294. <table width="100%" border=0 rules="none" frame="void"
  295. cols="5" cellspacing="0" cellpadding="0">
  296. <tr valign="top" align="left">
  297. <td width="10%"></td>
  298. <td width="3%">
  299. <p><b>&minus;B</b></p>
  300. </td>
  301. <td width="5%"></td>
  302. <td width="80%">
  303. <p>Force output to be written with Big-Endian byte order.
  304. This option only has an effect when the output file is
  305. created or overwritten and not when it is appended to.</p>
  306. </td>
  307. <td width="0%">
  308. </td>
  309. <tr valign="top" align="left">
  310. <td width="10%"></td>
  311. <td width="3%">
  312. <p><b>&minus;C</b></p>
  313. </td>
  314. <td width="5%"></td>
  315. <td width="80%">
  316. <p>Suppress the use of &lsquo;&lsquo;strip
  317. chopping&rsquo;&rsquo; when reading images that have a
  318. single strip/tile of uncompressed data.</p>
  319. </td>
  320. <td width="0%">
  321. </td>
  322. <tr valign="top" align="left">
  323. <td width="10%"></td>
  324. <td width="3%">
  325. <p><b>&minus;c</b></p>
  326. </td>
  327. <td width="5%"></td>
  328. <td width="80%">
  329. <p>Specify the compression to use for data written to the
  330. output file: <b>none</b> for no compression, <b>packbits</b>
  331. for PackBits compression, <b>lzw</b> for Lempel-Ziv &amp;
  332. Welch compression, <b>jpeg</b> for baseline JPEG
  333. compression, <b>zip</b> for Deflate compression, <b>g3</b>
  334. for CCITT Group 3 (T.4) compression, and <b>g4</b> for CCITT
  335. Group 4 (T.6) compression. By default <i>tiffcrop</i> will
  336. compress data according to the value of the
  337. <i>Compression</i> tag found in the source file.</p>
  338. </td>
  339. <td width="0%">
  340. </td>
  341. </table>
  342. <!-- INDENTATION -->
  343. <table width="100%" border=0 rules="none" frame="void"
  344. cols="2" cellspacing="0" cellpadding="0">
  345. <tr valign="top" align="left">
  346. <td width="17%"></td>
  347. <td width="82%">
  348. <p>The <small>CCITT</small> Group 3 and Group 4 compression
  349. algorithms can only be used with bi-level data.</p>
  350. <!-- INDENTATION -->
  351. <p>Group 3 compression can be specified together with
  352. several T.4-specific options: <b>1d</b> for 1-dimensional
  353. encoding, <b>2d</b> for 2-dimensional encoding, and
  354. <b>fill</b> to force each encoded scanline to be zero-filled
  355. so that the terminating EOL code lies on a byte boundary.
  356. Group 3-specific options are specified by appending a
  357. &lsquo;&lsquo;:&rsquo;&rsquo;-separated list to the
  358. &lsquo;&lsquo;g3&rsquo;&rsquo; option; e.g. <b>&minus;c
  359. g3:2d:fill</b> to get 2D-encoded data with byte-aligned EOL
  360. codes.</p>
  361. <!-- INDENTATION -->
  362. <p><small>LZW</small> compression can be specified together
  363. with a <i>predictor</i> value. A predictor value of 2 causes
  364. each scanline of the output image to undergo horizontal
  365. differencing before it is encoded; a value of 1 forces each
  366. scanline to be encoded without differencing. LZW-specific
  367. options are specified by appending a
  368. &lsquo;&lsquo;:&rsquo;&rsquo;-separated list to the
  369. &lsquo;&lsquo;lzw&rsquo;&rsquo; option; e.g. <b>&minus;c
  370. lzw:2</b> for <small>LZW</small> compression with horizontal
  371. differencing.</p>
  372. </td>
  373. </table>
  374. <!-- TABS -->
  375. <table width="100%" border=0 rules="none" frame="void"
  376. cols="5" cellspacing="0" cellpadding="0">
  377. <tr valign="top" align="left">
  378. <td width="10%"></td>
  379. <td width="3%">
  380. <p><b>&minus;f</b></p>
  381. </td>
  382. <td width="5%"></td>
  383. <td width="80%">
  384. <p>Specify the bit fill order to use in writing output
  385. data. By default, <i>tiffcrop</i> will create a new file
  386. with the same fill order as the original. Specifying
  387. <b>&minus;f lsb2msb</b> will force data to be written with
  388. the FillOrder tag set to <small>LSB2MSB,</small> while
  389. <b>&minus;f msb2lsb</b> will force data to be written with
  390. the FillOrder tag set to <small>MSB2LSB.</small></p>
  391. </td>
  392. <td width="0%">
  393. </td>
  394. <tr valign="top" align="left">
  395. <td width="10%"></td>
  396. <td width="3%">
  397. <p><b>&minus;i</b></p>
  398. </td>
  399. <td width="5%"></td>
  400. <td width="80%">
  401. <p>Ignore non-fatal read errors and continue processing of
  402. the input file.</p>
  403. </td>
  404. <td width="0%">
  405. </td>
  406. <tr valign="top" align="left">
  407. <td width="10%"></td>
  408. <td width="3%">
  409. <p><b>&minus;l</b></p>
  410. </td>
  411. <td width="5%"></td>
  412. <td width="80%">
  413. <p>Specify the length of a tile (in pixels).
  414. <i>tiffcrop</i> attempts to set the tile dimensions so that
  415. no more than 8 kilobytes of data appear in a tile.</p>
  416. </td>
  417. <td width="0%">
  418. </td>
  419. <tr valign="top" align="left">
  420. <td width="10%"></td>
  421. <td width="3%">
  422. <p><b>&minus;L</b></p>
  423. </td>
  424. <td width="5%"></td>
  425. <td width="80%">
  426. <p>Force output to be written with Little-Endian byte
  427. order. This option only has an effect when the output file
  428. is created or overwritten and not when it is appended
  429. to.</p>
  430. </td>
  431. <td width="0%">
  432. </td>
  433. <tr valign="top" align="left">
  434. <td width="10%"></td>
  435. <td width="3%">
  436. <p><b>&minus;M</b></p>
  437. </td>
  438. <td width="5%"></td>
  439. <td width="80%">
  440. <p>Suppress the use of memory-mapped files when reading
  441. images.</p>
  442. </td>
  443. <td width="0%">
  444. </td>
  445. <tr valign="top" align="left">
  446. <td width="10%"></td>
  447. <td width="3%">
  448. <p><b>&minus;p</b></p>
  449. </td>
  450. <td width="5%"></td>
  451. <td width="80%">
  452. <p>Specify the planar configuration to use in writing image
  453. data that has one 8-bit sample per pixel. By default,
  454. <i>tiffcrop</i> will create a new file with the same planar
  455. configuration as the original. Specifying <b>&minus;p
  456. contig</b> will force data to be written with multi-sample
  457. data packed together, while <b>&minus;p separate</b> will
  458. force samples to be written in separate planes.</p>
  459. </td>
  460. <td width="0%">
  461. </td>
  462. <tr valign="top" align="left">
  463. <td width="10%"></td>
  464. <td width="3%">
  465. <p><b>&minus;r</b></p>
  466. </td>
  467. <td width="5%"></td>
  468. <td width="80%">
  469. <p>Specify the number of rows (scanlines) in each strip of
  470. data written to the output file. By default (or when value
  471. <b>0</b> is specified), <i>tiffcrop</i> attempts to set the
  472. rows/strip that no more than 8 kilobytes of data appear in a
  473. strip. If you specify special value <b>-1</b> it will
  474. results in infinite number of the rows per strip. The entire
  475. image will be the one strip in that case.</p>
  476. </td>
  477. <td width="0%">
  478. </td>
  479. <tr valign="top" align="left">
  480. <td width="10%"></td>
  481. <td width="3%">
  482. <p><b>&minus;s</b></p>
  483. </td>
  484. <td width="5%"></td>
  485. <td width="80%">
  486. <p>Force the output file to be written with data organized
  487. in strips (rather than tiles).</p>
  488. </td>
  489. <td width="0%">
  490. </td>
  491. <tr valign="top" align="left">
  492. <td width="10%"></td>
  493. <td width="3%">
  494. <p><b>&minus;t</b></p>
  495. </td>
  496. <td width="5%"></td>
  497. <td width="80%">
  498. <p>Force the output file to be written with data organized
  499. in tiles (rather than strips). options can be used to force
  500. the resultant image to be written as strips or tiles of
  501. data, respectively.</p>
  502. </td>
  503. <td width="0%">
  504. </td>
  505. <tr valign="top" align="left">
  506. <td width="10%"></td>
  507. <td width="3%">
  508. <p><b>&minus;w</b></p>
  509. </td>
  510. <td width="5%"></td>
  511. <td width="80%">
  512. <p>Specify the width of a tile (in pixels). <i>tiffcrop</i>
  513. attempts to set the tile dimensions so that no more than 8
  514. kilobytes of data appear in a tile. <i>tiffcrop</i> attempts
  515. to set the tile dimensions so that no more than 8 kilobytes
  516. of data appear in a tile.</p>
  517. </td>
  518. <td width="0%">
  519. </td>
  520. </table>
  521. <!-- INDENTATION -->
  522. <table width="100%" border=0 rules="none" frame="void"
  523. cols="2" cellspacing="0" cellpadding="0">
  524. <tr valign="top" align="left">
  525. <td width="8%"></td>
  526. <td width="91%">
  527. <p><b>&minus;,={character}</b></p></td>
  528. </table>
  529. <!-- INDENTATION -->
  530. <table width="100%" border=0 rules="none" frame="void"
  531. cols="2" cellspacing="0" cellpadding="0">
  532. <tr valign="top" align="left">
  533. <td width="19%"></td>
  534. <td width="80%">
  535. <p>substitute {character} for &rsquo;,&rsquo; in parsing
  536. image directory indices in files. This is necessary if
  537. filenames contain commas. Note that &rsquo;,=&rsquo; with
  538. whitespace immediately following will disable the special
  539. meaning of the &rsquo;,&rsquo; entirely. See examples.</p>
  540. </td>
  541. </table>
  542. <a name="EXAMPLES"></a>
  543. <h2>EXAMPLES</h2>
  544. <!-- INDENTATION -->
  545. <table width="100%" border=0 rules="none" frame="void"
  546. cols="2" cellspacing="0" cellpadding="0">
  547. <tr valign="top" align="left">
  548. <td width="8%"></td>
  549. <td width="91%">
  550. <p>The following concatenates two files and writes the
  551. result using <small>LZW</small> encoding:</p></td>
  552. </table>
  553. <!-- INDENTATION -->
  554. <table width="100%" border=0 rules="none" frame="void"
  555. cols="2" cellspacing="0" cellpadding="0">
  556. <tr valign="top" align="left">
  557. <td width="17%"></td>
  558. <td width="82%">
  559. <pre>tiffcrop -c lzw a.tif b.tif result.tif
  560. </pre>
  561. </td>
  562. </table>
  563. <!-- INDENTATION -->
  564. <table width="100%" border=0 rules="none" frame="void"
  565. cols="2" cellspacing="0" cellpadding="0">
  566. <tr valign="top" align="left">
  567. <td width="8%"></td>
  568. <td width="91%">
  569. <p>To convert a G3 1d-encoded <small>TIFF</small> to a
  570. single strip of G4-encoded data the following might be
  571. used:</p></td>
  572. </table>
  573. <!-- INDENTATION -->
  574. <table width="100%" border=0 rules="none" frame="void"
  575. cols="2" cellspacing="0" cellpadding="0">
  576. <tr valign="top" align="left">
  577. <td width="17%"></td>
  578. <td width="82%">
  579. <pre>tiffcrop -c g4 -r 10000 g3.tif g4.tif
  580. </pre>
  581. </td>
  582. </table>
  583. <!-- INDENTATION -->
  584. <table width="100%" border=0 rules="none" frame="void"
  585. cols="2" cellspacing="0" cellpadding="0">
  586. <tr valign="top" align="left">
  587. <td width="8%"></td>
  588. <td width="91%">
  589. <p>(1000 is just a number that is larger than the number of
  590. rows in the source file.)</p>
  591. <!-- INDENTATION -->
  592. <p>To extract a selected set of images from a multi-image
  593. TIFF file use the -N option described above. Thus, to copy
  594. the 1st and 3rd images of image file &quot;album.tif&quot;
  595. to &quot;result.tif&quot;:</p></td>
  596. </table>
  597. <!-- INDENTATION -->
  598. <table width="100%" border=0 rules="none" frame="void"
  599. cols="2" cellspacing="0" cellpadding="0">
  600. <tr valign="top" align="left">
  601. <td width="17%"></td>
  602. <td width="82%">
  603. <pre>tiffcrop -N 1,3 album.tif result.tif
  604. </pre>
  605. </td>
  606. </table>
  607. <!-- INDENTATION -->
  608. <table width="100%" border=0 rules="none" frame="void"
  609. cols="2" cellspacing="0" cellpadding="0">
  610. <tr valign="top" align="left">
  611. <td width="8%"></td>
  612. <td width="91%">
  613. <p>Given file &quot;CCD.tif&quot; whose first image is a
  614. noise bias followed by images which include that bias,
  615. subtract the noise from all those images following it (while
  616. decompressing) with the command:</p></td>
  617. </table>
  618. <!-- INDENTATION -->
  619. <table width="100%" border=0 rules="none" frame="void"
  620. cols="2" cellspacing="0" cellpadding="0">
  621. <tr valign="top" align="left">
  622. <td width="17%"></td>
  623. <td width="82%">
  624. <pre>tiffcrop -c none -b CCD.tif CCD.tif -d 2 result.tif
  625. </pre>
  626. </td>
  627. </table>
  628. <a name="SEE ALSO"></a>
  629. <h2>SEE ALSO</h2>
  630. <!-- INDENTATION -->
  631. <table width="100%" border=0 rules="none" frame="void"
  632. cols="2" cellspacing="0" cellpadding="0">
  633. <tr valign="top" align="left">
  634. <td width="8%"></td>
  635. <td width="91%">
  636. <p><b>pal2rgb</b>(1), <b>tiffinfo</b>(1), <b>tiffcmp</b>(1),
  637. <b>tiffcp</b>(1), <b>tiffmedian</b>(1), <b>tiffsplit</b>(1),
  638. <b>libtiff</b>(3TIFF)</p>
  639. <!-- INDENTATION -->
  640. <p>Libtiff library home page:
  641. <b>http://www.simplesystems.org/libtiff/</b></p>
  642. </td>
  643. </table>
  644. <hr>
  645. </body>
  646. </html>