-
Notifications
You must be signed in to change notification settings - Fork 111
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
Request: *.SVG support #102
Comments
I added svg to the extensions list. Seems to work fine. |
Well, it seems to work, but there are error messages on the console, from Gradio(?):
|
Yes, Gradio uses PIL here: And PIL has no svg support. Funny that it still seems to work... |
yes on preview svg is ok, on processing it fails it is using an ancient svg lib. i want to investigate three.js/svg anyways why need you to process svg, then? |
please use in case of file.name.endswith(.svg) to show info from its origin png instead. btw, will add prompt info to svg soon |
I don't. I think that error is produced by Gradio itself, when I click on the image and Gradio displays it in a larger format. |
it is. gradio itself is fine, beacuse the svg is loaded as dataURL and so passed to the browser like "<img src=data:txt/svg;bas64...", so in fact the browser does the rendering of the svg. |
By using either txt2vectorgraphics-script (old one) or my new Vector-Studio-Extension, people can generate many SVG just next to their png, in same folder, same name etc.
So, my request is, to display any SVG graphic in the list as well.
I could add "Edit SVG" on the current selection and send it to internal svg editor. Or people can delete crappy svgs.
<img src="bla.svg">
as element, Vectorstudio will handle background(transparency)-stylecaption="svg"
attribute for each PIL.Image in the gallery preview, so the user can clearly see that it is not the PNG one, sometimes they are damn identically.Further readings:
https://github.com/GeorgLegato/stable-diffusion-webui-vectorstudio
The text was updated successfully, but these errors were encountered: