Webkit status (updated)

Geert Janssens janssens-geert at telenet.be
Mon Mar 30 15:13:24 EDT 2009


On Monday 30 March 2009, Christian Stimming wrote:
> Sound great! I'll have a look these days.
>
> Am Samstag, 28. März 2009 23:28 schrieb Phil Longstaff:
> > It turned out to be simple to look through the html string for an
> > <object> tag, then remove it and pass it to an object handler.  The
> > object handlers used by gnc_html_webkit parse this string for the info
> > put into the html string by
> > html-barchart.scm/html-piechart.scm/html-linechart.scm/html- scatter.scml
> > and use that to pass to gog to create the graph pixbuf.  The pixbuf is
> > then saved to /tmp as a png image, and the original <object> string is
> > replaced by a new <img> string with a reference to the image.
>
> Err... saving images into /tmp and embedding them through <img> is a good
> idea to get the new engine up and running. However, in the long run this is
> probably not so good a solution, because saving temporary files somewhere
> on disk opens up a new can of worms. Privacy issues about the pictures with
> financial data being the most prominent, I guess. Are there other solutions
> for picture embedding available in the long run?
>
How about using SVG ? Most of the graphs in GnuCash can be easily setup as 
vector graphics (pie charts, bar charts,...).

Both firefox and Safari can handle (simple) inline SVG, so I assume there 
renderers (gecko and webkit) have this capability too.

An added advantage of using SVG is that the graphs can be made scalable.

Note: I haven't used SVG myself yet, but it looks promising.

Regards,

Geert


More information about the gnucash-devel mailing list