22 November 2009

A tool converting SVG to Canvas

This blogging platform, Blogger.com, does not display its content in XHTML: in consequence, it is not possible to embed a SVG picture in the body of a post. Solution: I've created a tool called SVGToCanvas converting a SVG document to a Canvas script. The software is available here: . For example, the picture below was a SVG file converted to canvas (yes, have a look at the html source).

That's it.
Pierre

Inspired from "Retour du Bal", Alfred Roll (1846-1919). Musee des Beaux-Arts de Nantes.


5 comments:

  1. Hi Pierre,

    This blogging platform, Blogger.com, does not display its content in XHTML: in consequence, it is not possible to embed a SVG picture in the body of a post.

    I'm not familiar with the blogger.com platform but... Wouldn't it be possible to embed the SVG pictures using <object> tags? Maybe through a configurable widget... ;-)

    Great to see the developed work, though! :-)

    ReplyDelete
  2. You're right: A svg image can be inserted using the 'iframe' element (see my older post http://plindenbaum.blogspot.com/2008/12/genetic-algorithm-with-darwins-face.html ). But when using a 'canvas' there is no need to upload the svg elsewhere (for example, you can truly download your blog) , your storage quota (e.g. Google Picasa) of images is not reduced.

    ReplyDelete
  3. This is awesome.
    Thank you so much for releasing this tool!

    ReplyDelete
  4. is it possible to convert html5 canvas script to SVG?

    ReplyDelete
  5. great tool.and it so helpful now for my work. keep sharing more information.
    School Signs UK

    ReplyDelete