-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make a script to export individual SVGs #120
Comments
@rdbende You mean use a script to convert PNG images to SVG images? |
No. There are these two files
from which I exported the current PNG images. It was easy because Inkscape has a feature to batch-export PNG images. But now I need some way to export the individual SVG |
But why not convert the PNG images in the |
Because PNG is a raster image, which means it cannot be scaled without becoming pixelated. |
I took on the challenge, and came up with this:
It seems to do what you described, "...export the individual SVG elements as separate SVG files." To use it edit the last line with the path to the original SVG, and then run it. The program will create a folder called "separated_svg_images" and dump the newly created SVGs there. It's more of a proof-of-concept, not a finished program, but I'm just wondering if something like this would work. There are some bugs, such as some non-image elements getting separated, but like I said, it's not done. Just let me know what needs to be changed. I hope this helps! (BTW, I know practically nothing about SVGs 🤣) |
@ethical-haquer thanks a lot for this! It needs some adjustments, but I'm going to grab some time and finally implement this. |
With the Tcl/Tk team we're working on including this theme in a following release of Tk. That requires porting the theme to use SVG images of PNGs, which would also enable HiDPI support (#18), and maybe accent colors in the future (#12).
For now I exported nearly half of the SVG images one by one from Inkscape, but that is really cumbersome. I have limited time at the moment, so I would greatly appreciate someone's help in creating script that would
The SVG source files are at
src/dark/dark.svg
andsrc/light/light.svg
.Thanks in advance for anyone's generous contribution ❣️
The text was updated successfully, but these errors were encountered: