Disabled optimizations which are incompatible with inkscape 0.91 - they work just fine with 0.92

This commit is contained in:
root 2019-06-26 18:20:08 +02:00
parent d1a3906e20
commit ccf5612a62

View file

@ -15,13 +15,13 @@ const flags = require('../tool/flags.js');
const enabledPlugins = [ const enabledPlugins = [
"cleanupAttrs", "removeDoctype", "removeXMLProcInst", "removeComments", "removeMetadata", "removeTitle", "removeDesc", "cleanupAttrs", "removeDoctype", "removeXMLProcInst", "removeComments", "removeMetadata", "removeTitle", "removeDesc",
"removeUselessDefs", "removeEditorsNSData", "removeEmptyAttrs", "removeHiddenElems", "removeEmptyText", "removeUselessDefs", "removeEditorsNSData", "removeEmptyAttrs", "removeHiddenElems", "removeEmptyText",
"removeEmptyContainers", "cleanupEnableBackground", "convertStyleToAttrs", "convertColors", "convertPathData", "removeEmptyContainers", "cleanupEnableBackground", "convertStyleToAttrs", "convertColors",
"convertTransform", "removeUnknownsAndDefaults", "removeNonInheritableGroupAttrs", "removeUselessStrokeAndFill", "convertTransform", "removeUnknownsAndDefaults", "removeNonInheritableGroupAttrs", "removeUselessStrokeAndFill",
"removeUnusedNS", "cleanupNumericValues", "moveElemsAttrsToGroup", "moveGroupAttrsToElems", "collapseGroups", "mergePaths", "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) { function createPluginsArray(enabled, disabled) {
var array = []; var array = [];
@ -220,4 +220,4 @@ app.get('/design/download', async function (req, res) {
app.listen(8000, function () { app.listen(8000, function () {
console.log('Example app listening on port 8000!'); console.log('Example app listening on port 8000!');
}); });