diff --git a/docker/Dockerfile.test b/docker/Dockerfile.test index 7734ec56..efbaa37e 100644 --- a/docker/Dockerfile.test +++ b/docker/Dockerfile.test @@ -55,11 +55,15 @@ COPY --from=libheif-builder /opt/libheif/lib/ /usr/local/lib/ ENV LD_LIBRARY_PATH=/usr/local/lib RUN ldconfig -# Allow ImageMagick's Ghostscript delegate to read/write EPS (the default -# Debian policy.xml blocks it). +# Allow ImageMagick's Ghostscript delegate to read EPS. Decoding an EPS goes +# through the PostScript (PS) coder, so the default Debian policy.xml blocking +# PS/PS2/PS3 must be opened too, not just EPS -- otherwise `convert` refuses with +# a policy error before Ghostscript ever runs. RUN POLICY_FILE=$(find /etc/ImageMagick* -name policy.xml 2>/dev/null | head -1) && \ if [ -n "$POLICY_FILE" ]; then \ - sed -i 's/