does anyone know how to use libjeg from within memory in python

Chris Colbert sccolbert at gmail.com
Tue Oct 13 06:25:22 EDT 2009


Heh, for whatever reason, your post is dated earlier than my response,
but wasn't here when I sent mine. But yeah, PIL worked.

On Tue, Oct 13, 2009 at 12:04 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Chris Colbert wrote:
>> Say I use python to talk to a wireless webcamera that delivers images
>> via http requests.
>>
>> I request an image and read it into a buffer, but the image is in jpeg format.
>>
>> I would like to convert this to a simple RGB format buffer to pass to
>> numpy. Has anyone managed this using libjpeg or any other lib?
>
> According to the docs, the stdlib jpeg module has been removed in Py3:
>
> http://docs.python.org/library/jpeg.html
>
> But since you are processing images anyway, what about using an image
> processing library like PIL or ImageMagick?
>
> Stefan
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list