Quote:
Also, did you understand what that third guy was doing to get autocropping that doesn't quit after the first dark pixel?
|
Considering it is written in python using PIL, and is packaged up in a function, it would be easy to integrate into ashkulz's work. Sorry I don't have something written in C that could be readily integrated into RasterFarian. It not only trims the extra white space, but does so while maintaining the correct aspect ratio and centering the image. As I mentioned before, for scanned documents, where you'll inevitably have some dirty pixels, it works much better than the current use of the getbbox() method. Though the code may look a little clumsy, I never noticed any real speed penalty in image processing.
My schedule clears up in a couple of weeks. Hope to play again soon.