Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To merge many tif files to single tif file?

I have so many tif files that I want to convert into a single one. I am on Ubuntu 11.04, how can I do it? and I was tried convert tif to single pdf, but I stuck when convert pdf to tif, I use ghoscript with this command :

gs -dNOPAUSE -q -g300x300 -sDEVICE=tiffg4 -dBATCH -sOutputFile=result.tif source.pdf

but the result it's not good. :( . any suggestion for my problem?

Thanks before.

like image 637
adhown Avatar asked Jun 21 '12 09:06

adhown


2 Answers

use tiffcp

usage: tiffcp [options] input... output.tiff

for instance:

tiffcp *.tiff output.tiff

and you will have a resulting multipage tiff

then tiff2pdf (a wrapper for ghostscript)

usage:  tiff2pdf [options] input.tiff
like image 120
Dingo Avatar answered Sep 21 '22 10:09

Dingo


To install tiffcp use apt-get install libtiff-tools

like image 27
user4620160 Avatar answered Sep 25 '22 10:09

user4620160