Skip to content

Instantly share code, notes, and snippets.

@ytbilly3636
Last active February 6, 2023 15:49
Show Gist options
  • Save ytbilly3636/507628905ba4a91da5c79264312a8237 to your computer and use it in GitHub Desktop.
Save ytbilly3636/507628905ba4a91da5c79264312a8237 to your computer and use it in GitHub Desktop.
Convert jpg to eps
FROM debian
MAINTAINER ytbilly3636
RUN apt update
RUN apt install -y imagemagick
RUN mkdir /dir
WORKDIR /dir
VOLUME ["/dir"]
CMD ["bash"]
# docker build -t epsgen .
# docker run --rm -v $PWD:/dir epsgen cp /etc/ImageMagick-6/policy.xml .
# https://gordiustears.net/imagemagick-%E3%81%AE-gs-pdf%E8%84%86%E5%BC%B1%E6%80%A7%E5%AF%BE%E5%BF%9C%E3%81%AE%E7%84%A1%E5%8A%B9%E5%8C%96/
docker run --rm -v $PWD:/dir epsgen sh -c "cp policy.xml /etc/ImageMagick-6/policy.xml && convert hoge.jpg hoge.eps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment