[Bug 591730] Re: Image.crop(.) does not work as documented
Closing that outdated report as EOL has been reached long time ago ** Changed in: python-imaging (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/591730 Title: Image.crop(.) does not work as documented To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/591730/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591730] Re: Image.crop(.) does not work as documented
I made further tests and found out that the upper left corner is included, while the lower right corner is excluded. So current behavior does not match interpretation either. Also the phrase is quoted is from http://www.pythonware.com/library/pil/handbook/image.htm under crop section. -- Image.crop(.) does not work as documented https://bugs.launchpad.net/bugs/591730 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591730] Re: Image.crop(.) does not work as documented
according to http://www.pythonware.com/library/pil/handbook/introduction.htm: "Copying a subrectangle from an image box = (100, 100, 400, 400) region = im.crop(box) The region is defined by a 4-tuple, where coordinates are (left, upper, right, lower). The Python Imaging Library uses a coordinate system with (0, 0) in the upper left corner. Also note that coordinates refer to positions between the pixels, so the region in the above example is exactly 300x300 pixels." This says to me that coordinates are *exclusive*, so I believe PIL is behaving correctly in accordance with its docs. What documentation were you looking at, exactly? It might be helpful to copy in there explanation that "coordinates refer to positions between the pixels" -- Image.crop(.) does not work as documented https://bugs.launchpad.net/bugs/591730 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 591730] Re: Image.crop(.) does not work as documented
** Attachment added: "Dependencies.txt" http://launchpadlibrarian.net/50011753/Dependencies.txt -- Image.crop(.) does not work as documented https://bugs.launchpad.net/bugs/591730 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs