VectorStyler
    • Categories
    • Unread
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Import svg patterns

    Scheduled Pinned Locked Moved Questions and Support
    5 Posts 2 Posters 264 Views 2 Watching
    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.
    • E Offline
      EricP
      last edited by

      When importing files containing svg patterns, VectorStyler did not render the pattern as expected (nor did Affinity, but Inkscape did render correctly). Is there a setting I missed ?

      By pattern, I'm referring to a pattern which can be defined in defs and applied to multiple shapes as a url fill. Like defined in : https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/pattern

      Test file : 0_1768562670337_test_svg.svg

      zipped : 0_1768562757314_test_svg.svg.zip

      VectorStylerV 1 Reply Last reply Reply Quote 1
      • VectorStylerV Offline
        VectorStyler @EricP
        last edited by

        @EricP I opened a bug on this

        1 Reply Last reply Reply Quote 1
        • E Offline
          EricP
          last edited by

          @VectorStyler release 1.3.008 fixed the pattern import. Thanks for that.

          I found an issue, working with imported patterns. They don't seem to behave like native VS patterns and make the imported document difficult to edit.

          I think there are 2 main issues remaining :

          1/ expanding pattern tiles makes VectorStyler very slow (up to freeze on large designs)

          I'm attaching a VS document where a design has been imported from a svg file (with svg pattern).
          VS document : 0_1768726791597_imported svg with pattern fill.vstyler

          Here is the original imported SVG document : 0_1768726876271_exported (42).svg.zip

          After expansion of the pattern into a clipping mask, the object becomes slow to manipulate or recolor. On larger design files, the application simply removes the pattern upon expanding it, or freezes.

          Here is an example of a design where VS doesn't expand the pattern at all (leaving it blank) : 0_1768727368297_exported (40).svg.zip

          I noticed that imported svg patterns expand into a much more nested grouping structure than native VS patterns, which could explain the slowness

          0_1768727017503_fe206280-4e6d-42f6-b248-31e371186c22-image.png

          Native VS dot pattern after expansion
          0_1768727093182_ee94d529-197a-4bc2-9fc5-a670825aff51-image.png

          2/ render (minor) : imported patterns don't render well, until the canvas is zoomed. Rendering comes and goes as we work on the document and zoom in and out. Not a major issue but would be nice if it could be improved
          0_1768726395444_afaa52f4-323e-4051-ba1d-34a800cebcae-image.png

          after zoom
          0_1768726423696_cb8bce42-8f5c-418e-965c-fc49526792fd-image.png

          VectorStylerV 2 Replies Last reply Reply Quote 1
          • VectorStylerV Offline
            VectorStyler @EricP
            last edited by

            @EricP I opened a bug on this

            1 Reply Last reply Reply Quote 1
            • VectorStylerV Offline
              VectorStyler @EricP
              last edited by

              @EricP I can replicate this last error with the slowdown. The object that was filled with the pattern is large and when expanding creates a lot of small clipping groups.
              This is slow to render for now.
              I will try to improve this later, but for now I have no solution for this.

              The grey fill at zoom out is just for display, the level at which this happens can be set in display options.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post