Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #244094

imagemagick policy setting

From Emanuel Berg <moasenwood@zoho.eu>
Newsgroups linux.debian.user
Subject imagemagick policy setting
Date 2022-01-17 00:40 +0100
Message-ID <DGnhT-H9-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

imagemagick policy setting Emanuel Berg <moasenwood@zoho.eu> - 2022-01-17 00:40 +0100
  Re: imagemagick policy setting deloptes <emanoil.kotsev@deloptes.org> - 2022-01-17 01:50 +0100
    Re: imagemagick policy setting Emanuel Berg <moasenwood@zoho.eu> - 2022-01-17 02:50 +0100
    Re: imagemagick policy setting local10 <local10@tutanota.com> - 2022-01-17 04:50 +0100
      Re: imagemagick policy setting Emanuel Berg <moasenwood@zoho.eu> - 2022-01-17 05:10 +0100
        Re: imagemagick policy setting local10 <local10@tutanota.com> - 2022-01-17 05:50 +0100
          Re: imagemagick policy setting deloptes <emanoil.kotsev@deloptes.org> - 2022-01-17 12:40 +0100
            Re: imagemagick policy setting <tomas@tuxteam.de> - 2022-01-17 13:10 +0100
            Re: imagemagick policy setting Lee <ler762@gmail.com> - 2022-01-17 18:10 +0100

csiph-web