[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] image.load() works for some Jpeg's, but not others.



More on this. If I open the file with PIL first and resave it, it works with Pygame.

Hope it helps,
Sandy


Sandy Walsh wrote:
I get jpeg images from about six different IP cameras. I know there is different firmware in each of them. One of them gives a jpeg that can be read via image.load() the others all throw an unrecognized format exception. Obviously the problem is in the camera firmware, but the real problem is that windows image viewer and nearly every other application can open these files without problem. So it makes me concerned that the loader for pygame is less forgiving than these standard applications. I'm attaching a sample of the jpegs for your review. Only Cam185.jpeg can be opened by image.load().

begin:vcard
fn:Alexander "Sandy" Walsh
n:Walsh;Alexander "Sandy"
org:Impath Networks
adr:Suite 100;;42 Payzant Ave;Halifax;NS;B3B 1Z6;Canada
email;internet:swalsh@xxxxxxxxxxxxxxxxxx
title:Software Developer
tel;work:902-468-1010 x 246
x-mozilla-html:FALSE
url:http://www.impathnetworks.com
version:2.1
end:vcard