Hi, Francis- Francis Hemsher wrote: | | Based on that view, its elements, translations, and zoom level, I can | build an SVG document on the server. After It's built, then I want to | convert it into base64 (gif) and include that in the email.
Well, base64 is just an encoding; it doesn't equate to a GIF. You can base64-encode PNGs (smaller than GIFs), or even ASCII text. | Question...Has anyone converted an SVG document/elements to | base64? And | what's the relative size of the base64 vs SVG? I hope this is | possible. This should be fairly easy. Just send the SVG snapshot up to the server, rasterize it (I'd use Batik), and use a base64 encoder to convert the raster (there are lots of free command-line tools to do this), then send that out in your email body. In my experiments, I took a very verbose SVG file (one with lots of shapes, groups, and gradients: 37KB), and saved it as a PNG and a GIF (both 490x425), then base64-encoded it. The encoded PNG was slightly smaller than the SVG (28KB), and the encoded GIF was almost double the SVG (60KB). The base64 versions were about 40% larger than their raster equivalents. Regards- Doug [EMAIL PROTECTED] www.vectoreal.com ...for scalable solutions. ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

