diff --git a/Dockerfile b/Dockerfile index b46eb4acd07..55d7339ec78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -100,7 +100,7 @@ WORKDIR /home/niworkflows ENV HOME="/home/niworkflows" # Installing SVGO -RUN npm install -g svgo +RUN npm install -g svgo@^2 # Installing WEBP tools RUN curl -sSLO "http://downloads.webmproject.org/releases/webp/libwebp-0.5.2-linux-x86-64.tar.gz" && \ diff --git a/niworkflows/viz/utils.py b/niworkflows/viz/utils.py index 921b9dfd082..7f1d6360ac5 100644 --- a/niworkflows/viz/utils.py +++ b/niworkflows/viz/utils.py @@ -44,7 +44,7 @@ def svg_compress(image, compress="auto"): # Compress the SVG file using SVGO if compress: - cmd = "svgo -i - -o - -q -p 3 --pretty --disable=cleanupNumericValues" + cmd = "svgo -i - -o - -q -p 3 --pretty" try: pout = subprocess.run( cmd,