[reportlab-users] Writing smaller image-only PDFs

Tim Roberts timr at probo.com
Thu Feb 9 13:26:47 EST 2006

On Thu, 09 Feb 2006 22:37:07 +1100, Nicholas Watmough
<nickw at deakin.edu.au> wrote:

>And why is reportlab able to compress 11MB of BMPs into 2MB, but not 
>able to compress 5.5MB of JPEGs?

Because BMPs are uncompressed to begin with.  They contain raw pixels,
usually with vast areas of duplication.  That kind of thing compresses
very well.  JPGs are already compressed.  Their contents are much more
random, and as a result compress poorly.

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the reportlab-users mailing list