0

I use Google Swiffy to export Flash files into formats that can be adapted by modern browsers. But recently Google updated its feature so that I can only export to <canvas> rather than getting raw SVG markup text code, which is what I've expected.

Is there any simple way to convert the thing into SVG markup code?

AGamePlayer
  • 7,404
  • 19
  • 62
  • 119
  • If they have removed the SVG feature you are probably stuck with canvas or an older version of Swiffy. Content on canvas is bitmap/pixels and cannot be converted to SVG (in an easy way). –  Dec 06 '14 at 09:24
  • @KenFyrstenberg Thanks for pointing this out. But I found the generated content can be zoomed without any loss, it doesn't look like bitmap. It's really weird. – AGamePlayer Dec 06 '14 at 09:37
  • It's probably because the base data is stored as vector data and using canvas to simply rasterize it. You could probably use the base data (seem to be in JSON) to generate a SVG instead. –  Dec 06 '14 at 10:12
  • @KenFyrstenberg Thanks, so anyway it's impossible to get a SVG directly from the generated canvas, right? – AGamePlayer Dec 06 '14 at 10:37
  • Yes, unfortunately. Canvas will only produce a simple bitmap. –  Dec 06 '14 at 10:38
  • @K3N I found your response here after posting this question http://stackoverflow.com/questions/32516617/how-does-google-swiffy-maintain-vectors-in-canvas-tag. Could you elaborate on how swiffy is doing this? I can't find any other resources online that detail how to maintain vectors in canvas like swiffy does. Thanks. – forrex Sep 14 '15 at 18:13

0 Answers0