Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7605247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:07:10+00:00 2026-05-31T00:07:10+00:00

I am using SVG-Edit to create a pretty big SVG image file. The problem

  • 0

I am using SVG-Edit to create a pretty big SVG image file. The problem is the memory usage seems insane, and I’m wondering if this is normal or there are things I’m missing in the optimization department.

Here is a table showing memory delta at each stages, using Firefox 10 about:memory page:
about:memory

Stages:

  • Before: Before SVG-Edit is loaded
  • Ready : SVG-Edit is loaded
  • Load 35 images with total size of 16.6MB *
  • Preview generated file *
  • Closed Preview *
  • Closed tab, trigger FF memory cleanup via about:memory page

* My custom function, not SVG-Edit’s

As you can see in the delta of Ready <-> Load Images, the memory usage pretty much increased by 300 MB! To load 16 MB of images! The way I load the images is by creating ObjectURL, so that cannot be the reason why. During the preview is when I transform the ObjectURL array to data:uri, so I understand the huge increase there (still, a bit too much I think). The requirement is to have a single resulting SVG with all images embedded so it’s typical for each SVGs to be 50MB or more in size.

It’s worth a note that SVG-Edit does not use Canvas. It’s DOM-based editor.

I’ll appreciate any help, especially on how I can really pin-down what exactly is taking memory.

Here’s the simplified flow when loading images (input change() event):

  • set Image.src to objectURL
  • set Image.onload event to create SVGImage element with src, width, height, copied from Image. revokeObjectURL() is also executed
  • store SVGImage in global array of object { imageID, <image> element, file handle }
  • append SVGImages to SVG
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:07:11+00:00Added an answer on May 31, 2026 at 12:07 am

    The 16MB is the size of the SVG. The 300MB jump there is for image surfaces, which are pixel data. This will be 4 bytes per pixel of rendered image.

    So you could have a tiny SVG image with just a 1000px by 1000px rectangle in it; this could probably be done in under 500 bytes of SVG. But the rendered version would be 4MB of pixel data….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this: http://code.google.com/p/svg-edit/ I put a hard coded code inside the svgcanvas div
I need to edit (using javascript) an SVG document embedded in an html page.
I am trying to serve a svg map using: <object data=map.svg type=image/svg+xml width=400 height=300>
I'm using AS3 (Flash) to read SVG files and display them. The problem is
I'm using urllib (in Python) to fetch an SVG file: import urllib urllib.urlopen('http://alpha.vectors.cloudmade.com/BC9A493B41014CAABB98F0471D759707/-122.2487,37.87588,-122.265823,37.868054?styleid=1&viewport=400x231').read() which
I would like to edit SVG files using some scripting language (preferably Python). In
I'm using ImageMagickObject COM+ in Classic ASP. I am trying to convert an SVG-file
Trying to load an image in SVG using an HTML page: <html> ... <svg>
I'll be using PHP to parse a SVG-file and I've done some tests with
i want to acheive the effect on this page using SVG. As you can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.