pygame 1.8 has a bug where it saves everything you ask to be a png as a jpeg. http://pygame.motherhamster.org/bugzilla/show_bug.cgi?id=13 it's fixed in svn though
On Mon, Apr 14, 2008 at 5:06 PM, René Dudfield <[EMAIL PROTECTED]> wrote: > hello, > > I think this might be to do with the pygame version? > > Older pygame (1.7.1) can save to .tga I think - I think it also is > buggy and names files in any way, even though the file is actually a > bmp. > > You could add a test in there to see what type of file is produced, or > save a different type depending on the version of pygame... or require > pygame 1.8+ > > > > cheers, > > > > > > On Tue, Apr 15, 2008 at 9:29 AM, Ian Mallett <[EMAIL PROTECTED]> wrote: > > Hi, > > On my project, http://www.pygame.org/project/698/?release_id=1226, there > > is a render option, which allows you to render an image of an arbitrary > size > > using the coordinates on the viewport. The image is then saved. > > Unfortunately, for some people this works, and for others, it returns an > > invalid .png file. I'm guessing it has something to do with the surface > > type (e.g. 16 bit, 32 bit, etc.). I'm not sure though. Ideas? > > Thanks, > > Ian > > >
