This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
I assume the script works with other PNGs? Then there must be something special about this particular one. Maybe the script doesn't like the color profile of the PNG.
FWIW, I tested the png using the wx3.1.3 png2c.py. With python 2.7 it ran normally and produced sensible output.
Testing with python 3.5, and after fixing several "Missing parentheses in call to 'print'" errors, I got the
"bold.png" doesn't seem to be a valid PNG file.
output. The same happened with all the other pngs that I tested.
So it seems to be a python3 issue. I don't speak python, but maybe the failing line: if bytes[0:16].tostring() != '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR'
trips over another python 2->3 change...
Not sure if it is a better alternative, but there is Binary to Header that converts any file's binary data into a C character array. So it's not limited to PNG images only.