Skip to content
Advertisement

Creating a PNG file in Python

I have an application where I would like to be able to generate PNG images from data in Python. I’ve done some searching and found “PIL” which looked pretty outdated. Is there some other library that would be better for this?

Thanks,

Advertisement

Answer

Is there some other library that would be better for this?

The png package would be a reasonable common choice.

Here’s the project description:

PyPNG allows PNG image files to be read and written using pure Python.

Advertisement