[Image-SIG] Re: Pure Python JPEG parser

Fredrik Lundh fredrik at pythonware.com
Wed Nov 24 11:21:02 CET 2004


David Fraser wrote:

> I couldn't resist it... I found a C++ simple (and imperfect) JPEG parser
> (http://www.codeproject.com/bitmap/TonyJpegLib.asp) and converted it by
> hand to pure Python ...

you're nine years late:

http://groups.google.com/groups?selm=9512171552.AA03787%40kalle.image.ivab.se

(no, I no longer have the code)

> Here's a table of a brief test, image size and execution time under
> Standard Python and Psyco running on my Athlon
> Image Size          |  Standard Python  |  Psyco
> photo, 2048 x 1536  |  32 minutes       |  46 seconds
> cartoon, 604 x 446  |  16 seconds       |  4 seconds

hey, the PIL column is missing...

</F>





More information about the Image-SIG mailing list