Skip to content

Simple Java EE SVG Renderer, mimicking Highcharts' PHP Rasterizer

Notifications You must be signed in to change notification settings

bkputnam/svg-renderer

Repository files navigation

SVG Renderer

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 Export Server

Highcharts PHP Source (github)

Setup

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)

Repositories

Main repo: http://stash.lasp.colorado.edu/projects/WEBAPPS/repos/svg-renderer/browse

Github mirror: https://github.com/lasp-web/svg-renderer

About

Simple Java EE SVG Renderer, mimicking Highcharts' PHP Rasterizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published