[Image-SIG] convert in memory jpg to bmp
Roman Petrichev
tier at inbox.ru
Wed Jul 12 20:52:23 CEST 2006
Hi.
I've got such the problem. I have a function processing bmp images given
to it as a parameter. For example:
img_data = open('1.bmp').read()
result = my_func(img_data)
it works fine. The point is how to do the same with a jpg image. my_func
works only with bmp data. So I've to convert file into bmp. From PIL doc
I got to know how to do this, but I don't want to save file into bmp
image - I want to have bmp data in memory.
How can I do this?
Thanks.
More information about the Image-SIG
mailing list