Page 1 of 1

The speed and size when convert TIFF to PDF

Posted: 2012-06-06T18:54:48-07:00
by TFT2012
Hi,
I have one TIFF file with 2 pages ( 850x1100, 96dpi, PackBits, filesize 65K ). I use ImageMagick and Tiff2PDF to convert it separately. The PDF size from Imagemagick is 127K, and from Tiff2PDF is 28K. If I use shell script to run this conversion 100 times, ImageMagick takes 16 senconds, but Tiff2PDF takes < 2 seconds.

Since the Tiff2PDF couldn't successfully convert certain TIFF to PDF ( has unknown field ..... error ), I consider to test ImageMagick to check its performance. ImagceMagick can successfully convert those bad TIFF files; however, the file size and conversion speed are much worse than TIFF2PDF when converting the GOOD TIFFs. Since most of the TIFF files are good, the trade-off is big if I switch from TIFF2PDF to ImageMagick due to the file size and speed.

I basically just use
convert sample.tif sample.pdf
command. Can anyone tell me if there any specific parameters I can add to this command in order to make the file size smaller and speed faster?

Thanks!

Re: The speed and size when convert TIFF to PDF

Posted: 2012-06-06T19:31:22-07:00
by fmw42
IM was not built for optimized speed, but for flexibility and quality.

With regard to converting tif to pdf, if the tiff is 24bit color, then you could try adding -type palette and see if that makes the file size smaller.