Can't seem to get crop working correctly, problem is, it crops a region of correct dimensions, but always from top left corner (0, 0), instead of from my passed coordinates.
image = Image.open(input)
region = image.crop((1000,400,2000,600)
region.save(output)
In image.py from PIL, method _ImageCrop I've printed out.. :
print x0, y0, x1, y1
self.__crop = x0, y0, x1, y1
Values seem to be correct.
Input is a JPEG image of size 1600x2390.
Python version: 2.5, PIL version: 1.1.6
Any suggestions? Thanks