generating Tiff/PNM page break tag when concatenating fax pages

Frank D. Cringle (fdc@cliwe.ping.de)
22 Apr 1999 1910:44:18 +0200


Gert Doering <gert@greenie.muc.de> writes:
> hi,
> 
> On Wed, Apr 21, 1999 at 12:42:18AM +0200, Dirk Lattermann wrote:
> > >I think fax2tiff does exactly this: generate a multipage TIFF file from
> > >single page input files.
> > 
> > is it theoretically possible to fax each page of one fax in a
> > different resolution, high or low (not that it would be done often,
> > or at all)? 
> 
> Yes, that's possible.
> 
> > Then, you can't put them into one TIFF file
> > (at least not with fax2tiff, as it only supports setting the
> > resolution once per TIFF file, IIRC).
> 
> Tough. Bad luck.

Switching resolution from page to page seems a rather unlikely
scenario, but the way to get the pages into a single tiff file would
be to use tifcp's -a (append) flag.

  fax2tiff -4M -R98 -o fax.tif fn123456789
  fax2tiff -4M  -o tmp.tif ff987654321
  tiffcp -a -r9999 tmp.tif fax.tif
  rm tmp.tif

Instead of setting the resolution (-R98) for low res faxes you could
use the -s flag to stretch them.

-- 
Frank Cringle,      fdc@cliwe.ping.de
voice: (+49 2304) 467101; fax: 943357