Skip to content
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

Autogenerate variants with Command Line Tool #38

Open
paul-brenner opened this issue Mar 21, 2024 · 1 comment
Open

Autogenerate variants with Command Line Tool #38

paul-brenner opened this issue Mar 21, 2024 · 1 comment

Comments

@paul-brenner
Copy link

I was converting some svgs using the command line tool that don't have variants. But it was reasonable enough for me to create copies of the original where stroke-width="2" and create a version with stroke-width="1" for ultralight and stroke-width="4" for black.

I'm assuming there may be a good reason why the tool doesn't automatically offer the ability to do that for me? Is it just "no one else wants that so it wasn't work building", "you will really regret it if you try to write a prerun script that generates variants with .5 and 2x the stroke-width and tries to use those for variants", or "sure, maybe that can be added in a future version if time ever allows"?

Sorry for the naive question, love the tool, and thank you!

@swhitty
Copy link
Owner

swhitty commented May 24, 2024

Hi @paul-brenner,

This could be a useful option to add to the command line tool but it shouldn't be the default. There is a little complexity because some SVGs are scaled, so a stroke-width may need to be relative, or we supply it as a % e.g:

--ultralight-stroke-width=75% ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants