Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcellomaugeri/svg-color-edit-script
https://github.com/marcellomaugeri/svg-color-edit-script
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcellomaugeri/svg-color-edit-script
- Owner: marcellomaugeri
- License: gpl-3.0
- Created: 2024-02-16T09:59:49.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-16T17:59:47.000Z (12 months ago)
- Last Synced: 2024-02-16T18:45:40.889Z (12 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SVG-Color-Edit-Script
This Python script allows to show or change the fill color of SVG files.### Installation:
```bash
pip install -r requirements.txt
```### Usage:
```bash
python3 script.py --path ./image.svg --pathType file --method change_colors --colors #ed1c24:#000080
```### Arguments:
- `--path`: Path to the file or directory.
- `--pathType`: Type of the path. It can be `file` or `folder`.
- `--method`: Method to use. It can be `show_colors` or `change_colors`.
- `--colors`: Colors to change. It can be a single color or a list of colors separated by `:`. Example: `#ED1C24:#000080,#FF00FF:#0000FF`.
- `--output`: Path to the output file or directory. If not specified, the output will be saved in the same path as the input file or directory.