omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    svg images

    Pythonista
    4
    6
    5357
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonB
      JonB last edited by

      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...

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by 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?

        1 Reply Last reply Reply Quote 0
        • dgelessus
          dgelessus last edited by

          Put a transparent button on top?

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            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)

            1 Reply Last reply Reply Quote 0
            • Cethric
              Cethric last edited by

              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

              1 Reply Last reply Reply Quote 0
              • JonB
                JonB last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors