Crops white space around a scanned JPEG photo using PIL. My mom and I were trying to scan in old photographs, but when you scanned them in, it scanned the photos as a full page and you had to go in and crop each image individually. I used PIL to give me an array of pixels and found the location in the image where on average the pixels stopped being white pixels (signifiying the image started) and cropped it. This worked for horizonatal and vertical images.
-
Notifications
You must be signed in to change notification settings - Fork 0
teenageknight/Whitespace-Cropper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Crops white space around a scanned JPEG photo using PIL.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published