From ccf5612a62315a94a9492be4a000219457d79b26 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Jun 2019 18:20:08 +0200 Subject: [PATCH] Disabled optimizations which are incompatible with inkscape 0.91 - they work just fine with 0.92 --- node/server/server.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/server/server.js b/node/server/server.js index c84e748..efd5852 100644 --- a/node/server/server.js +++ b/node/server/server.js @@ -15,13 +15,13 @@ const flags = require('../tool/flags.js'); const enabledPlugins = [ "cleanupAttrs", "removeDoctype", "removeXMLProcInst", "removeComments", "removeMetadata", "removeTitle", "removeDesc", "removeUselessDefs", "removeEditorsNSData", "removeEmptyAttrs", "removeHiddenElems", "removeEmptyText", - "removeEmptyContainers", "cleanupEnableBackground", "convertStyleToAttrs", "convertColors", "convertPathData", + "removeEmptyContainers", "cleanupEnableBackground", "convertStyleToAttrs", "convertColors", "convertTransform", "removeUnknownsAndDefaults", "removeNonInheritableGroupAttrs", "removeUselessStrokeAndFill", "removeUnusedNS", "cleanupNumericValues", "moveElemsAttrsToGroup", "moveGroupAttrsToElems", "collapseGroups", "mergePaths", - "convertShapeToPath", "sortAttrs", "removeDimensions" + "sortAttrs", "removeDimensions" ]; -const disabledPlugins = ["removeViewBox", "cleanupIDs", "removeRasterImages"]; +const disabledPlugins = ["removeViewBox", "cleanupIDs", "removeRasterImages", "convertPathData", "convertShapeToPath"]; function createPluginsArray(enabled, disabled) { var array = []; @@ -220,4 +220,4 @@ app.get('/design/download', async function (req, res) { app.listen(8000, function () { console.log('Example app listening on port 8000!'); -}); \ No newline at end of file +});