Tuesday, August 19, 2014

Re: render a SVG graphic as bitmap?

Sounds nice, but a primitive test app that displays a simple SVG graphic doesn't show up in Safari (IOS 7) and Blackberry.
(Ok, the latter may be unimportant.)

Then you have done something wrong. I just tried IOS 6 and 7 using http://svgjs.com/test/


 Other than that you would either use a graphics tool to export svg to jpg/png and fixed resolutions and let the client decide which to use or let the server convert it if you don't have any fixed resolutions.

I would let the client select the resolution. Then, I would make a RPC call which either returns with all the images, or with an URL where they can be found. In the second case, I would have to keep track of all the resolutions some client has asked for. In the first case, I would have to transmit a structure containing all the images at once. What's better?

In both cases you would need URLs. If you would download byte data you would need to render the image inside a canvas. If the image is small enough you could download data URIs though.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment