HISE Logo Forum
    • Categories
    • Register
    • Login

    Is there a size limit for SVG to BASE64 files?

    Scheduled Pinned Locked Moved General Questions
    12 Posts 4 Posters 133 Views
    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.
    • M
      Mighty23
      last edited by

      When I try to convert an SVG image to BASE64 with HISE tool, I get a crash or "infinite loading". I would like to know if there is a limit for svg images or if my computers have too limited resources (or something else).

      Free Party, Free Tekno & Free Software too

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Mighty23
        last edited by

        @Mighty23 Not that I'm aware of, can you share the image?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        M 1 Reply Last reply Reply Quote 1
        • M
          Mighty23 @d.healey
          last edited by

          @d-healey https://drive.google.com/drive/folders/1UQYm61518rYs--TBO5trubFSsAgcB6G-?usp=sharing

          Free Party, Free Tekno & Free Software too

          CasmatC 1 Reply Last reply Reply Quote 0
          • CasmatC
            Casmat @Mighty23
            last edited by Casmat

            @Mighty23 I'm just curious to what the benefit of using an svg would be here for your use case? The hollow mooon svg holds an image element inside it with png data. Hise's converter tool only supports path data (that I know of), hence why its not working.

            i make music

            d.healeyD M 2 Replies Last reply Reply Quote 1
            • d.healeyD
              d.healey @Casmat
              last edited by

              @Casmat Yeah that's probably the issue

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 0
              • M
                Mighty23 @Casmat
                last edited by

                @Casmat said in Is there a size limit for SVG to BASE64 files?:

                I'm just curious to what the benefit of using an svg would be here for your use case?

                Have a background that fits into a UI that the user can zoom in/out?

                @Casmat said in Is there a size limit for SVG to BASE64 files?:

                svg holds an image element inside it with png data

                probably because in Illustrator the layers are not converted into shapes, many thanks!

                Free Party, Free Tekno & Free Software too

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Mighty23
                  last edited by

                  @Mighty23 said in Is there a size limit for SVG to BASE64 files?:

                  Have a background that fits into a UI that the user can zoom in/out?

                  Is it not possible to do that with just an image?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Mighty23 @d.healey
                    last edited by

                    @d-healey said in Is there a size limit for SVG to BASE64 files?:

                    Is it not possible to do that with just an image?

                    Yes I can do that but wouldn't that lead to blur/pixelated images for "extreme" values?

                    Free Party, Free Tekno & Free Software too

                    d.healeyD oskarshO 2 Replies Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Mighty23
                      last edited by

                      @Mighty23 Yes, but that's no different to an image within an SVG. You only get the advantage with an SVG for vector graphics, as soon as you include a bitmap you will run into issues.

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      M 1 Reply Last reply Reply Quote 1
                      • oskarshO
                        oskarsh @Mighty23
                        last edited by

                        @Mighty23 you can export the image at 2x the size and scale it down so when the user scales the interfaces it stays relatively sharp

                        HISE Developer for hire :)

                        d.healeyD 1 Reply Last reply Reply Quote 1
                        • M
                          Mighty23 @d.healey
                          last edited by

                          @d-healey thanks, I understand; either I find a way to have the SVG file without PNG inside or I limit the use of Zoom In/Out.

                          Free Party, Free Tekno & Free Software too

                          1 Reply Last reply Reply Quote 1
                          • d.healeyD
                            d.healey @oskarsh
                            last edited by d.healey

                            @oskarsh said in Is there a size limit for SVG to BASE64 files?:

                            @Mighty23 you can export the image at 2x the size and scale it down so when the user scales the interfaces it stays relatively sharp

                            Building on this idea you can include multiple images at different resolutions and load the closest match to the user's screen size. Or in your case the zoom amount.

                            I did this with Sordina https://codeberg.org/LibreWave/Sordina/src/branch/main/Scripts/Container.js#L27

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

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

                            59

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            102.1k

                            Posts