Re: render a SVG graphic as bitmap?

2014-08-20 Thread Joseph Lust
Also wrote a bunch of map animations in SVG back in 2011. Used SMIL to markup the animations and movements of viewports. Worked out quite well in FF at the time, but IE was terrible. Chrome worked well, but there were a number of SMIL methods that Chrome either didn't implement or did so

Re: render a SVG graphic as bitmap?

2014-08-20 Thread Cristiano Costantini
Hi, You can use Apache Batik library and write a servlet that renders raster images from SVG files and serves them over http. Apache Batik is not uptaded since long time, but we use it successfully by some years to renders maps stored on the server in SVG format. Regards, Cristiano Il

Re: render a SVG graphic as bitmap?

2014-08-20 Thread Cristiano Costantini
Sorry for the double message, I had problems with the mail app and it has delivered it now! Il mercoledì 20 agosto 2014, Cristiano Costantini cristiano.costant...@gmail.com ha scritto: Hi, You can use Apache Batik library and write a servlet that renders raster images from SVG files and

Re: render a SVG graphic as bitmap?

2014-08-19 Thread Jens
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

Re: render a SVG graphic as bitmap?

2014-08-19 Thread Cristiano Costantini
Hi Magnus, you can use Apache Batik to write a Servlet that renders SVG and then sends to the browser the image as png or jpeg. Apache Batik is not updated since long time but it works quite well. We use Batik with this approach since 2010, to display maps that are stored on the server as SVG

Re: render a SVG graphic as bitmap?

2014-08-18 Thread Magnus
On Sunday, August 17, 2014 6:17:18 PM UTC+2, Jens wrote: Just don't support IE 8 and be happy http://caniuse.com/#search=svg 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.)

render a SVG graphic as bitmap?

2014-08-17 Thread Magnus
Hi, assume you have some graphics (chess pieces) in vector format (SVG). Assume that SVG is not available in the user's browser and also assume that the user may choose a resolution from a discrete set of resolutions, e. g. 50x50 px or 100x100 px or 200x200 px. Or even allow the user to define

Re: render a SVG graphic as bitmap?

2014-08-17 Thread Jens
Just don't support IE 8 and be happy http://caniuse.com/#search=svg 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. -- J. -- You