#296 integer argument expected, got float in resize and load functions

v1.0_(example)
closed
nobody
Pillow (1)
5
2013-09-08
2013-09-08
No

I have got a problems with using Pillow by calling standard methods resize, load

integer argument expected, got float

/usr/local/lib/python3.2/dist-packages/Pillow-2.1.0-py3.2-linux-x86_64.egg/PIL/Image.py in load, line 1702

this code throw type error:
img = img.resize((dst_width, dst_height), pil.ANTIALIAS)

but dst_width and dst_height are integers, i tried to convert variables like this but the problem is still the same

img = img.resize((int(dst_width), int(dst_height)), pil.ANTIALIAS)

Discussion

  • Richard Jones

    Richard Jones - 2013-09-08
    • status: open --> closed
     
  • Richard Jones

    Richard Jones - 2013-09-08

    This is the support tracker for the Python Packaging Index (PyPI), not any particular package. Please contact the package maintainers for support.

     

Log in to post a comment.