imagemagick policy setting
I forgot how to fix this. I've done it once before, it was
a one-liner in a config file, related to policy/perceived
security/something-something. Don't remember, please help :)
TIA
#! /bin/zsh
#
# this file:
# http://user.it.uu.se/~embe8573/conf/.zsh/pdf-img
# https://dataswamp.org/~incal/conf/.zsh/pdf-img
pdf2img () {
local src=$1
local name=${src:r}
local ext=${2:-png}
local dst=${name}.${ext}
local dep=32
local den=300
convert -density $den -depth $dep $src $dst
}
alias pdf2png=pdf2img
# $ pdf2png llc.pdf
# convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.
# convert-im6.q16: no images defined `llc.png' @ error/convert.c/ConvertImageCommand/3229.
#
# example file:
# https://dataswamp.org/~incal/hs-linux/docs/report/figures/llc/llc.pdf
--
underground experts united
https://dataswamp.org/~incal
Reply to: