Skip to content

Adds and Removes user-defined strings to/from (all) SVGs in the script file's root folder.

Notifications You must be signed in to change notification settings

PeterCastler/StringVG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

StringVG

A simple GUI tool built with PyQt5 that allows batch modification of SVG files by adding or removing attributes from path elements.

Features

image

  • 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

Installation

  1. Clone the repository:
git clone https://github.com/PeterCastler/StringVG.git
cd StringVG
  1. Create and activate a virtual environment:
python -m venv venv
.\venv\Scripts\activate  # On Windows
source venv/bin/activate  # On Unix or MacOS
  1. Install dependencies:
pip install PyQt5

Usage

  1. Activate the virtual environment (if not already activated):
.\venv\Scripts\activate  # On Windows
source venv/bin/activate  # On Unix or MacOS
  1. Run the script:
python StringVG.py
  1. 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

Requirements

  • Python 3.8 or higher
  • PyQt5

License

MIT License

Copyright (c) 2024 Peter Castler

About

Adds and Removes user-defined strings to/from (all) SVGs in the script file's root folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages