This project is a simple svg renderer. It accepts svg via post request and returns an image. It is intended to mimic almost exactly the functionality of Highcharts' PHP-and-Batik image rasterizer.
Highcharts PHP Source (github)
The easiest way to get this running is ./gradlew deployLocal
if you already have a standard
GlassFish server in /opt/
. The second easiest way is ./gradlew war
and then copying/uploading
the war file to wherever you need.
This server is configured to listen at http://[host]/highcharts-export-web. It expects a post
request using enctype="multipart/form-data"
with the following parameters:
svg | The svg string (file) to be rasterized |
type | The mime type of the returned file. Accepted values are: image/png, image/jpeg, application/pdf, image/svg+xml |
filename | The name of the returned file (defaults to "chart.suffix") |
width | The width of the returned image (optional, pulls default from svg) |
Main repo: http://stash.lasp.colorado.edu/projects/WEBAPPS/repos/svg-renderer/browse
Github mirror: https://github.com/lasp-web/svg-renderer