Skip to content

The script to automatically remove the spacing of images in a folder

Notifications You must be signed in to change notification settings

chenhaox/Autoclip-Python-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Autoclip-Python-Script

The script to automatically remove the spacing of images in a folder.

Instructions:

tool_autoclip.py [-ext <type of image:.jpg|.png..., default:.png>] <path of image>

Results

  1. Before image
  2. After Remove image

Add the script into terminal(Ubuntu)

  1. Make the script executable and find out where your python is in terminal:
chmod +x <path of the script>
which python3.7
/usr/bin/python3.7

Here, I use the python3.7 2. Put this code in the first line of the tool_autoclip.py:

/usr/bin/python3.7

3.Add the file path of the python file to the $PATH

vi ~/.bashrc

Add the file:

export PATH=$PATH: <path of the script's folder>

Save it out, re apply the .bashrc, and retry

source ~/.bashrc

About

The script to automatically remove the spacing of images in a folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages