Large SVG won't export to PNG--need some help
I have a largish (7+ MB) file (high-res: 7200x7200 px). When I try to export this file the program crashes very consistently. I have tried this on several machines, and so I am forced to consider the _very_ ugly possibility that I will have to recreate this from scratch.
This would go fairly quickly, but we are talking about a rather complex document here that I just don't want to redo. I have vacuumed the defs, but that didn't help. If anyone has any idea about the best aproach to healing files, I would greatly appreciate it. I have also checked that the computers in question will export other files, and they do that just fine.
As a semi-side note, one of the times this happened, it also corrupted the svg quite nastily (when I opened it in a text-editor, it was completely garbled), and I had to recreate the file from a somewhat dated backup. I now keep *much* better backups, but this is getting to be a real issue.
I even tried opening said file in GIMP (which will open svgs), but this crashed the GIMP!
Any help would be greatly appreciated.
Benjamin Orchard
On 11/25/05, Benjamin Orchard <orchard@...1327...> wrote:
This would go fairly quickly, but we are talking about a rather complex document here that I just don't want to redo. I have vacuumed the defs, but that didn't help. If anyone has any idea about the best aproach to healing files, I would greatly appreciate it. I have also checked that the computers in question will export other files, and they do that just fine.
The best approach in this (and other) cases is submit a bug WITH THAT FILE ATTACHED (or a link to it).
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
On Fri, 2005-11-25 at 21:54 -0500, Benjamin Orchard wrote:
I have also checked that the computers in question will export other files, and they do that just fine.
Important question: are the other files this large and complex?
I even tried opening said file in GIMP (which will open svgs), but this crashed the GIMP!
I suspect the problem is not that file, but that Inkscape and the GIMP are crashing because you do not have enough memory to export a file that large and complex and they are running out of it.
A 7200x7200 truecolor bitmapped image _alone_ requires almost 200MB; double or triple that for intermediate buffers, and then you need to account for the overhead of representing the SVG tree itself (which could run to several hundred megabytes, given 7MB of XML nodes, especially if there a number of clones -- and therefore shadow trees).
(To confirm this, try watching a graph of memory usage while you try to export the file.)
I would recommend trying inkscape from the commandline to export the image, rather than going through the GUI. That should require a little less memory, but it's no guarantee.
-mental
participants (3)
-
Benjamin Orchard
-
bulia byak
-
MenTaLguY