Skip to content

Commit

Permalink
Merge pull request #626 from mgxd/fix/svgo-2
Browse files Browse the repository at this point in the history
FIX: Purge removed `--disable` flag from svgo call
  • Loading branch information
mgxd authored Apr 12, 2021
2 parents 8433c47 + 0366b10 commit 616d2bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" && \
Expand Down
2 changes: 1 addition & 1 deletion niworkflows/viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 616d2bc

Please sign in to comment.