Howto:Serializing a Canvas to SVG: Difference between revisions

Jump to navigation Jump to search
Line 231: Line 231:
The next step is actually registering our new serialization scheme as a streaming service with the built-in mongoose httpd server, so that a browser (or Python script) can request a certain Canvas (by index) specifying <code>type=svg/xml</code> obtaining a corresponding SVG image. Once that is working, we can look at supporting streaming SVGs.
The next step is actually registering our new serialization scheme as a streaming service with the built-in mongoose httpd server, so that a browser (or Python script) can request a certain Canvas (by index) specifying <code>type=svg/xml</code> obtaining a corresponding SVG image. Once that is working, we can look at supporting streaming SVGs.


However, we will also need a way to properly resolve paths for raster images, as well as image nodes using texture maps to only extract a certain portion from a raster image, for details see [[Howto:Using_raster_images_and_nested_canvases#Texture_Maps]].
However, we will also need a way to properly resolve paths for raster images, while static files are actually a no-brainer, we also need to deal with embedded canvases as well as with image nodes using texture maps to only extract a certain portion from anoter raster image (or another canvas), for details see [[Howto:Using_raster_images_and_nested_canvases#Texture_Maps]].


== Related ==
== Related ==

Navigation menu