AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
December 1998

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



1998.12.16 07:38 "Re: TIFF to GIF conversion utility", by Niclas Borlin

>>>>> "Chris" == Chris VanHoose <Chris_VanHoose@accusearchinc.com> writes:

 Chris> I realize that this is not the exactly the correct place to
 Chris> post this message, but here I go.

 Chris> I am looking for a UNIX utility that can convert TIFF -G4
 Chris> compression images to GIF images and resize the GIF image to
 Chris> 65% of it's original size.  The utility I'm looking for must
 Chris> be able to do such a conversion in 3 seconds or less.  I tried
 Chris> ImageMagick, which uses the TIFF library, but it was extremely
 Chris> slow.  If you know of any good TIFF to GIF converters for Unix
 Chris> could you please let me know.

Hi Chris,

I did some test runs on my Sun UltraSparc II (Dual 200MHz) with the
PBMPLUS package. You have the timings below for an A4-sized test
image. The timings are not as good as you would like, but perhaps you
could modify the source (for avaliability, see e.g.
www.cica.indiana.edu/cica/faq/image_convert/convert.pbmplus.html) to
speed things up... I believe a lot of time is spent shuffling data,
since the source file is 11k, the resulting .gif file 73k, but the
intermediate ppm file is 9M! A program that would read/scale/write
strip-by-strip would most centainly be faster...

Good luck!

/Niclas

No scaling:
pixel% date; tifftopnm test.tif | ppmtogif -map map.ppm >! test.gif; date
Wed Dec 16 08:13:48 MET 1998
tifftopnm: writing PBM file
ppmtogif: computing other colormap...
ppmtogif: 256 colors found
Wed Dec 16 08:13:55 MET 1998

With scaling:
pixel% date; tifftopnm test.tif | pnmscale 0.65 | ppmtogif -map map.ppm > ! test.gif; date
Wed Dec 16 08:14:25 MET 1998
tifftopnm: writing PBM file
ppmtogif: computing other colormap...
pnmscale: promoting from PBM to PGM
ppmtogif: 256 colors found
Wed Dec 16 08:14:41 MET 1998
--
Niclas Borlin                       email: Niclas.Borlin@cs.umu.se
Department of Computing Science     phone: (+46) 90-786 68 32     
Umea University                       fax: (+46) 90-786 61 26    
S-901 87 Umea, SWEDEN            lat/long: 63.49 N, 20.19 E
--
To study a subject best, understand it thoroughly before you start.