From 478973f48f4a421e612af617aa22f50a049897e4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 14 Nov 2019 19:23:53 +0000 Subject: [PATCH] Add server-side inkscape to external renderers --- peppermint.guiconfig.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/peppermint.guiconfig.json b/peppermint.guiconfig.json index 7e4b022..390c106 100644 --- a/peppermint.guiconfig.json +++ b/peppermint.guiconfig.json @@ -57,7 +57,16 @@ "cli_mode": "substitution_pipe", "output_format": "image\/svg+xml", "output_classes": [ "invert-when-dark" ] - } + }, + "svginkscape": { + "name": "Inkscape SVG", + "description": "Server-side SVG-to-PNG rendering with inkscape. Requires inkscape to be installed and in your PATH, of course.", + "url": "https://developer.mozilla.org/en-US/docs/Web/SVG/Element", + "cli": "inkscape {input_file} -e {output_file}", + "cli_mode": "file", + "output_format": "image\/svg+xml", + "output_classes": [ ] + } } }, "parser_ext_time_limit": { "type": "number", "description": "The number of seconds external renderers are allowed to run for. Has no effect if external renderers are turned off. Also currently has no effect on Windows.", "default": 5 }, "parser_ext_allow_anon": { "type": "checkbox", "description": "

Whether to allow anonymous users to render new diagrams with the external renderer. When disabled, anonymous users will still be allowed to recall pre-rendered items from the cache, but will be unable to generate brand-new diagrams.

Note that if you allow anonymous edits this setting won't fully protect you: anonymous users could edit a page and insert a malicious diagram, and then laer a logged in user could unwittingly invoke the external renderer on the anonymous user's behalf.", "default": false },