Lenard Lindstrom wrote:
Which file type is out of your control, the .bmp image format or the gzip compression.
Both unfortunately.
Got it. GzipFile.seek() has no optional whence argument. pygame.image.load calls seek() with both an offset and whence, but
does not pass on the exception raised by GzipFile.seek().
Thanks for looking into this. I presume this means that if if the bug you're spotted was fixed, I'd still not be able to use the GzipFile stream.
2) Read the gzip file into a string and use StringIO to pass the
string to pygame.image.load().
I did try something like that then, thanks again.
-- Lenard Lindstrom <len-l@xxxxxxxxx>