[Image-SIG] Re: SystemError: tile cannot extend outside image
Fredrik Lundh
fredrik at pythonware.com
Tue Mar 22 07:06:18 CET 2005
Jim Tittsler wrote:
> You could modify PIL to stay away from this degenerate
> condition by adding y=max(1,y) and x=max(1,y) rules to the
> aspect ratio calculation in Image.py.
this was fixed in a recent 1.1.5 beta.
> But I'd think you might be better served using image.transform
or just a plain im.resize()
> and *not* attempting to maintain the aspect ratio in cases like this.
> Is a 1 pixel high thumbnail useful?
</F>
More information about the Image-SIG
mailing list