[Image-SIG] I don't understand this warning
Fredrik Lundh
fredrik at pythonware.com
Tue Oct 24 17:20:46 CEST 2006
Angelo wrote:
> # On sauvegarde l'image avant anti-aliasing
> imgDecoupADFBV=Image.new('RGBA', (widthADFBV, heightADFBV))
> imgDecoupADFBV.putdata(newimageRGBA_ADFBV)
>
> the script make his job, but it returns me this warning :
>
> /usr/lib/python2.4/site-packages/PIL/Image.py:1120: DeprecationWarning:
> integer argument expected, got float
> self.im.putdata(data, scale, offset)
does "newimageRGBA_ADFBV" perhaps contain floating point values?
> What is the problem ?
just an internal Python API that's a bit pickier than it has to be. you
can safely ignore this warning.
(for instructions on how to disable it, see the documentation for
Python's "warnings" module).
</F>
More information about the Image-SIG
mailing list