[Image-SIG] I don't understand this warning

Angelo angelol at easyconnect.fr
Tue Oct 24 16:59:09 CEST 2006


Hello, 


My PIL version is 1.1.5 .

I have a small problem with this part of code : 


... 

imageADFBV=Image.open('mon_image.jpg')
widthADFBV, heightADFBV=imageADFBV.size

...

 # On sauvegarde l'image avant anti-aliasing
imgDecoupADFBV=Image.new('RGBA', (widthADFBV, heightADFBV))
imgDecoupADFBV.putdata(newimageRGBA_ADFBV)

...

# Creation d'une nouvelle image et integration des donnees recoltees .
imgantialiasADFBV=Image.new('RGBA', (widthADFBV, heightADFBV))
imgantialiasADFBV.putdata(Antialiasing_ADFBV)
a1_ADFBV, a2_ADFBV, a3_ADFBV, a4_ADFBV=imgantialiasADFBV.split()
img_ADFBV=Image.merge('RGBA', (a1_ADFBV, a2_ADFBV, a3_ADFBV, a4_ADFBV))
# Sauvegarde de la nouvelle image (image tampon)
img_ADFBV.save('decoupe_fond_ADFBV_tampon_0.png')

...


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)


What is the problem ? . Can you help me ? .



a+



More information about the Image-SIG mailing list