Skip to content

Crops white space around a scanned JPEG photo using PIL.

Notifications You must be signed in to change notification settings

teenageknight/Whitespace-Cropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitespace-Cropper

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.

About

Crops white space around a scanned JPEG photo using PIL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages