[reportlab-users] JBIG2 (Re: Optimizing greyscale and bilevel images)

Jesus Cea jcea at jcea.es
Sat Dec 31 13:47:25 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/12/11 00:35, Jesus Cea wrote:

> On 29/12/11 00:00, Jesus Cea wrote:

>> I have bilevel PNG files that when printed as PDF using

>> reportlab are expanded THREE times.

>

> Using my patch, the final PDF file size is HALF of the unpatched

> ReportLab, when the source is bilevel images.


Experimenting with this, I am messing with JBIG2. PDF 1.4 supports it
natively. ReportLab generates PDF 1.3.

PIL doesn't support jbig2 at all, but PDF 1.4 supports it natively, so
would be trivial to include a jbig2 image in a (1.4) PDF file, given a
filename and a jbig2 file on disk/object wrapper.

Is there any reason to generate PDF 1.3 files instead of 1.4?. Or 1.7,
BTW.

Any interest in supporting JBIG?.

- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
. _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTv9YvZlgi5GaxT1NAQKC8gP/bISEeogWfdwEn+ek31HsCu8ZsZVkOkRK
YrOlhYXkSh8QcY808gLlhcCDMIG3SeMfCfgbhZD3WK3wDuEM5yFtvenm8Qjvsck/
CUd3JCP6ctg0b/NjZd5Jfj9sX6jIw43LhbZkNooy/aXgRPciIiiSdEi0rBEPq3o8
vwU5QzFExzg=
=nYr+
-----END PGP SIGNATURE-----


More information about the reportlab-users mailing list