• About • Tech Used • Optimizations • Setup • How To •
Quickly edit all svg assets in this repo.
Instead of user having to edit the python script. I used regular expression / regex to find existing current properties value. All user need to do is just run the script.
- Make sure Git is already setup and configured
$ git config --global user.name "Your Name" $ git config --global user.email "yourname@example.com"
- Python 3.5 and above is needed to run the script. You can check Python 3 is installed and its version with the following command
# Windows $ python --version # Mac / Linux $ python3 --version
- If it is not installed, you can install it with the following commands
$ sudo apt-get update $ sudo apt-get install python3
- Fork and clone this repo
cd
into svg-assets folder- Run the script in the terminal using the following command:
# Windows $ python svg-manipulator.py # Mac / Linux $ python3 svg-manipulator.py
- Enter new width
- Enter new height
- Enter new fill color