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

Re: [pygame] .png saving



That's because SDL itself will only load a PNG; not save one.  I have
some C code that I've written to save a PNG but it requires libpng -
probably pygame doesn't need any more dependencies.

Richard

Kris Schnee wrote:
> Ian Mallett wrote:
>> Hi,
>>   Saving a surface with "pygame.image.save()" with file extension
>> ".png" is broken.
> 
> Yeah, unfortunately that function seems only to like BMP and possibly
> TGA formats for saving. The good news is that these are lossless
> formats, so there's no smearing of images if you save them. You might
> try the Pygame Image Library (PIL) if you really need PNG support.
> 
>