Auto-crop in PIL?
Tyler Eaves
tyler at tylereaves.com
Thu Oct 30 18:21:13 EST 2003
On Thu, 30 Oct 2003 12:54:37 -0800, Erik Max Francis wrote:
> Tyler Eaves wrote:
>
>> That is, the image is in the rectangle (left non-white, top
>> non-white),
>> (right non-white, top non-white), (right non-white, bottom non-white),
>> (left non-white, bottom non-white)
>
> This only works if you actually know that the object you want to crop in
> the middle is rectangular. If it's amorphous, you'll have to scan in
> stripes..
I dunno, to me a crop is by definition rectangular, and that's the way
it's worked in every image editor I've ever used.
More information about the Python-list
mailing list