The speed and size when convert TIFF to PDF

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
TFT2012
Posts: 1
Joined: 2012-06-06T18:45:37-07:00
Authentication code: 13

The speed and size when convert TIFF to PDF

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: The speed and size when convert TIFF to PDF

Post 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.
Post Reply