This is an old revision of the document!


tiff workflow

convert -density 150 SN-085.pdf SN-085.tif
  • requires libtiff
tiffsplit input.tif
  • edit individual files (each page should be a file) as necessary using any graphics program, such as photoshop
  • since individual tiff files are not the final work product, it would be best to not use compression, since some tools do not work well with certain compression schemes
  • requires libtiff
ls -1L *.tif | while read file;do
tiff2pdf -p letter -o "${file}".pdf "${file}"
done
  • requires libtiff
tiffutil -cat x*.tif -out test.tif
convert -adjoin x*.tif output.tif
  • requires libtiff
  • this example uses the -c flag, which is set to lzw compression for much smaller files
tiffcp -c lzw x*.tif output2.tif
  • requires pdftk
  • this example does not include compression, so with uncompressed tif images, the file size is very large
pdftk *.pdf cat output combined.pdf
  • requires libtiff
    • compress file using lzw compression:
      tiffcp -c lzw input.tif output.tif
    • convert to grayscale, and use lzw compression:
      tiff2bw -c lzw input.tif output.tif
    • compress file using CCITT Group 4 compression:(The CCITT Group 3 and Group 4 compression algorithms can only be used with bilevel data - 1 bit black and white images)
      tiffcp -c g4 input.tif output.tif
    • convert to 1-bit, using CCITT Group 4 compression (black and white)
      convert -monochrome -compress Groupt4 input.tif output.tif
    • convert to 1-bit (black and white) specifying threshold for black:
      convert -monochrome -black-threshold 35768 input.tif output.tif
  • convert a bunch of files into monochrome 1-bit images, with CCITT Group 4 compression, then combine them into one multipage tiff file, and finally convert them into one pdf file:
    ls -1L x*.tif|while read file; do convert -monochrome -compress Group4 "${file}" "${file}".bw.tif; done
    
    tiffutil -cat *.bw.tif -out tifoutput.tif
    
    tiff2pdf tifoutput.tif output.pdf
  • docs/pdf/tiff_workflow.1179176882.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)