Last active
February 6, 2023 15:49
-
-
Save ytbilly3636/507628905ba4a91da5c79264312a8237 to your computer and use it in GitHub Desktop.
Convert jpg to eps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian | |
MAINTAINER ytbilly3636 | |
RUN apt update | |
RUN apt install -y imagemagick | |
RUN mkdir /dir | |
WORKDIR /dir | |
VOLUME ["/dir"] | |
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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