A simple GUI tool built with PyQt5 that allows batch modification of SVG files by adding or removing attributes from path elements.
- Add attributes to all
<path>
elements in SVG files - Remove specific attributes from all
<path>
elements - Process multiple SVG files in the current directory
- Progress bar to track batch processing
- Simple and intuitive interface
- Clone the repository:
git clone https://github.com/PeterCastler/StringVG.git
cd StringVG
- Create and activate a virtual environment:
python -m venv venv
.\venv\Scripts\activate # On Windows
source venv/bin/activate # On Unix or MacOS
- Install dependencies:
pip install PyQt5
- Activate the virtual environment (if not already activated):
.\venv\Scripts\activate # On Windows
source venv/bin/activate # On Unix or MacOS
- Run the script:
python StringVG.py
- In the GUI:
- Select whether to add or remove attributes
- Enter the attribute string (e.g.,
fill="currentColor"
) - Click "Process SVGs" to modify all SVG files in the current directory
- Progress bar will show the processing status
- Click "Close" when finished
- Python 3.8 or higher
- PyQt5
MIT License
Copyright (c) 2024 Peter Castler