libpng warning: interlace handling should be turned on when using png_read_image in Python/PyGame

Julian Laval picture Julian Laval · Oct 20, 2012 · Viewed 37.9k times · Source

I'm using PyGame for Python, and have been receiving the following warning when loading .png images with pygame.image.load:

libpng warning: Interlace handling should be turned on when using png_read_image

It doesn't affect the program, but has become particularly annoying. I've scoured the web for an answer to no avail.

I'm currently using 32 bit Python 3.3 with PyGame 1.9.2

Any ideas as to how I can get the warning to disappear?

Answer

JirkaV picture JirkaV · Dec 19, 2012

I had the same problem. It seems to be some bug of older libpng versions (see http://sourceforge.net/p/libpng/bugs/165/ for detail).

It should be already fixed, but not in my current setup: win32 + python 2.7.3.

As a workaround I simply converted png-24 images to png-8 in Photoshop and message has disappeared.