[Matplotlib-devel] Fwd: patch for stream prediction in pdf backend

Jouni K. Seppänen jks at iki.fi
Sun Sep 13 14:35:16 CEST 2015

Cornelius Weig <cornelius.weig at gmx.de> writes:

>  I have implemented PNG stream prediction for the pdf backend. It was
> marked as a TODO.

The code looks nice! However, the master branch on github (which should
become the release candidate pretty soon now) already has an
implementation, using libpng. It's true that libpng doesn't have an API
that's directly suited to this, but the current implementation simply
extracts the IDAT chunks from the png data and writes them into the pdf

Jouni K. Seppänen

More information about the Matplotlib-devel mailing list