diff --git a/Dockerfile b/Dockerfile index f3e03036d..f85630367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN apt-get update \ wget \ redis \ libc6-dev \ - inkscape \ + librsvg2-bin \ docker-ce \ docker-ce-cli \ containerd.io \ diff --git a/app/views/layouts/jupynotex.py b/app/views/layouts/jupynotex.py index 7fcb9bb1a..5dc725cd9 100644 --- a/app/views/layouts/jupynotex.py +++ b/app/views/layouts/jupynotex.py @@ -126,9 +126,8 @@ def process_svg(self, image_data): with open(svg_fname, 'wb') as fh: fh.write(raw_svg) - with open(os.devnull, 'w') as null: - cmd = ['inkscape', '--export-text-to-path', '--export-filename={}'.format(pdf_fname), svg_fname] - subprocess.run(cmd, stderr=null) + cmd = ['rsvg-convert', '--format=pdf', '--output={}'.format(pdf_fname), svg_fname] + subprocess.run(cmd) return pdf_fname diff --git a/deployAppSvr.Dockerfile b/deployAppSvr.Dockerfile index 4bfbbd034..424924957 100644 --- a/deployAppSvr.Dockerfile +++ b/deployAppSvr.Dockerfile @@ -27,7 +27,7 @@ RUN apt-get update \ cron \ msmtp-mta bsd-mailx \ redis \ - inkscape \ + librsvg2-bin \ docker-ce \ docker-ce-cli \ containerd.io \