Skip to content

Remove unnecessary white space from the background of an image.

Notifications You must be signed in to change notification settings

hmnhGeek/WhiteSpace-AutoCrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WhiteSpace-AutoCrop

Removes unnecessary white space from the background of an image.

How to use?

  1. First clone this repository and extract the files in a folder.
  2. Open terminal and type "python GUI.py". Hit enter.
  3. A home screen as shown will appear. screenshot
  4. Choose an image which is to be cropped. Click "Choose Image" for this. On clicking it, the following screen will appear. screenshot
  5. Now click "Confirm Auto Crop" to start automatic cropping of whitespace background.
  6. A dialog will appear which will ask you to tell the saving location. screenshot
  7. After the processing is done, the cropped image will be saved automatically on the specified location. screenshot

Let us see a sample.

Sample

This image was given to the app.

screenshot

And the output was this.

screenshot

I know, the output seems exactly same as the input, but that's not the case. Actually, because of whitespaced background of orignal and resultant image, both seems to be same. You can check the input image yourself at this link: https://github.com/hmnhGeek/WhiteSpace-AutoCrop/blob/master/Images/3.png and the output result here on this link: https://github.com/hmnhGeek/WhiteSpace-AutoCrop/blob/master/Images/done.jpg.

About

Remove unnecessary white space from the background of an image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages