Just did some experimentation with photos. Took a JPG, converted it to tiff

$ convert ~/Photos/2008/01/12/IMG_4063.JPG IMG_4063.tif

forced the compression with libtiff

$ tiffcp -c jpeg:75 IMG_4063.tif IMG_4063.75.tif

wrote it as a PDF

$ tiff2pdf -o IMG_4063.75.pdf IMG_4063.75.tif

imported the same tiff into gscan2pdf and wrote it as a PDF:

$ ls -l ~/Photos/2008/01/12/IMG_4063.JPG IMG_4063.tif IMG_4063.75*
-rwxr-xr-x 1 jeff jeff 3286311 2008-01-13 17:31
/home/jeff/Photos/2008/01/12/IMG_4063.JPG
-rw-r--r-- 1 jeff jeff  632922 2008-06-15 09:41 IMG_4063.75g.pdf
-rw-r--r-- 1 jeff jeff  694867 2008-06-15 09:38 IMG_4063.75.pdf
-rw-r--r-- 1 jeff jeff  700976 2008-06-15 09:34 IMG_4063.75.tif
-rw-r--r-- 1 jeff jeff 7805388 2008-06-15 09:31 IMG_4063.tif

If I import the JPG directly into gscan2pdf, this becomes:

-rw-r--r-- 1 jeff jeff  637825 2008-06-15 09:47 IMG_4063.75g.pdf

which is still better than libtiff.

So - as you have already said, it is possible to get small PDFs from
gscan2pdf if you choose the appropriate compression.

The question then is - how best to help the user choose the
compression? Count the depth of the image - 1bit = LZW, 2-3 bit = PNG,
>3bit = JPG? Have this as an extra "automatic" compression level? This
at least would be a sane way to deal with several pages with different
depths.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to