Re: dealing with very big (upto 1Gb) svg file

meemsheen <[email protected]> Sun, 14 Feb 2010 12:27:44 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>


Jeff Schiller wrote:
> 
> On Feb 14, 6:36 am, meemsheen <[email protected]> wrote:
> 
>> Any help to deal with this problem or do it in another better way will be
>> much appreciated.
>>
> 
> Is it required to turn everything into rectangles and each one having
> a different color?  The browsers may be choking on the number of
> elements (rects) since each element adds DOM overhead (memory usage).
> 
> Have you looked at parsing the data into SVG path commands?  Using
> just one path (with subpaths) for each color would drastically cut
> down on memory usage in the browser.
> 
> <path fill="blue" d="M100,100 L200,200 z"/>
> 
> This would be a path that moves the pen to (100,100) then draws a line
> to (200,200), then closes the path.
> 
> 
> 

No, its not required to turn everything into rects, but the different colors
are important, 
its just similar to visualize such a data with a "heatmap"...but a java
program which I've for that
also gives me 'out of mem error', and I also can't use utilities like
matrix2png...
 
Your suggestion of using Path and subpaths looks interesting, that it will
cut down the load,
but can I use different fill colors for subpaths? (i.e red color to values
from 0.50 to green color for values upto 0.99)

--
meemsheen
-- 
View this message in context: http://old.nabble.com/dealing-with-very-big-%28upto-1Gb%29-svg-file-tp27574066p27586725.html
Sent from the Mozilla - SVG mailing list archive at Nabble.com.

_______________________________________________
dev-tech-svg mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-svg