Post SVGs and then request renderings in other formats (currently only PNG)
This is a very small helper tool that renders SVG to PNG, including resources like images and fonts. The resulting PNG can be used for social images or other live content.
Updating the SVG or any of its resources will trigger an update to the PNG.
GET /
-> this help contentGET /images/<name>
-> load the image. if not cached, will create cached copy.PUT /images/<name>
-> Put a new svg on top of an existing filename. resets cache for POST /images
-> POST new svg to images, get redirected to image if valid or error (creates new) (does not cache)POST /images/<name>/resource/<resource>
-> POST relevant files that the SVG will need to render (e.g., referred PNGs) (invalidates DELETE /images/<name>
-> Remove the image from the systemcargo install social-image
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md.