Auto-crop in PIL?

Erik Max Francis max at alcyone.com
Thu Oct 30 15:54:37 EST 2003


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.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ After a thousand years or so you go native.
\__/  Camden Benares




More information about the Python-list mailing list