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
- 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