[Bug 591730] Re: Image.crop(.) does not work as documented
dino99
591730 at bugs.launchpad.net
Fri Feb 5 13:49:15 UTC 2016
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
Foundations Bugs, which is subscribed to python-imaging in Ubuntu.
https://bugs.launchpad.net/bugs/591730
Title:
Image.crop(.) does not work as documented
Status in python-imaging package in Ubuntu:
Invalid
Bug description:
Binary package hint: python-imaging
The PIL documentation says that the box parameter of the crop method
is "a 4-tuple defining the left, upper, right, and lower pixel
coordinate." My understanding of this phrase is that the coordinates
or inclusive, yet if you run this code:
from PIL import Image
i = Image.new("RGB", (1, 599))
j = i.crop((0, 597, 0, 598))
print j.size
The result is (0, 1) which seems to be wrong, because I expect an
image of size (1, 2) to be returned.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-imaging 1.1.7-1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Jun 9 17:56:43 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100317.1)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: python-imaging
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/591730/+subscriptions
More information about the foundations-bugs
mailing list