Open GoogleCodeExporter opened 8 years ago
I'm guessing that img is a numpy array? Is that so? What version of numpy are
you using, and what is the dtype
of the img array?
Basically, I'd love to fix this, but it's something to do with numpy integer
types not behaving properly with
Python's array and struct modules. See PyPNG's Issue 44 and Python's issue 2263
http://bugs.python.org/issue2263 for more gory details.
Original comment by d...@pobox.com
on 19 Jan 2010 at 8:44
There is a workaround. Add this to your code:
import warnings;warnings.filterwarnings('ignore','.*integer
*overflow',DeprecationWarning,'png')
It suppresses the DeprecationWarning. Since this seems to be due to a bug in
numpy (or misfeature at best), I'm
considering adding this to PyPNG.
Original comment by d...@pobox.com
on 19 Jan 2010 at 1:56
Original issue reported on code.google.com by
grimmw...@german-borg.de
on 18 Jan 2010 at 2:22