Forum Archive

svg images

JonB

Has anyone gotten svg images to work in either ui.Image or as PIL images?

I am doing a major rework of gitview and was planning to use some of the github icons to give this a cleaner feel.

But these come as svg, or as truetype. it seems that neither PiL nor ui.Image support svg, though pythonista can quickview these files...

ccc

https://forum.omz-software.com/topic/1539/are-svg-objects-loadable-viewable-in-the-web-view

Is there a way to create a .action method for a ui.WebView?

dgelessus

Put a transparent button on top?

JonB

I would rather not use a webview (seems very expensive just to show an image). Actually my resl goal is just to save as a png, without having to fire up the laptop...

I did find that ImageFont works, sort of ( I will need to figure out the unicode charatcters that are being used, then i think i will just save the icons I want as png)

Cethric

I am not sure if this is what you want, but it might help. http://stackoverflow.com/questions/27230293/how-to-convert-svg-to-png-using-html5-canvas-javascript-jquery-and-save-on-serve

JonB

Thanks,
My eventual solution was to bypass the problem and find suitable icons on iconfinder.com.