Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

imagemagick policy setting

907 views
Skip to first unread message

Emanuel Berg

unread,
Jan 16, 2022, 6:40:05 PM1/16/22
to
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

deloptes

unread,
Jan 16, 2022, 7:50:05 PM1/16/22
to
Emanuel Berg wrote:

> attempt to perform an operation not allowed by the security policy `PDF' @
> error/constitute.c/IsCoderAuthorized/421

Is google broken where you live?
https://askubuntu.com/questions/1127260/imagemagick-convert-not-allowed

--
FCD6 3719 0FFB F1BF 38EA 4727 5348 5F1F DCFE BCB0

Emanuel Berg

unread,
Jan 16, 2022, 8:50:05 PM1/16/22
to

/etc/ImageMagick-6/policy.xml

# find and edit the line
<policy domain="coder" rights="none" pattern="PDF" />
# to
<policy domain="coder" rights="read|write" pattern="PDF" />

https://askubuntu.com/questions/1127260/imagemagick-convert-not-allowed

local10

unread,
Jan 16, 2022, 10:50:05 PM1/16/22
to
Jan 17, 2022, 00:47 by emanoil...@deloptes.org:

> Is google broken where you live?
>


It's 2022, who in the right mind would use g**gle nowadays?!

https://nomoregoogle.com/

Emanuel Berg

unread,
Jan 16, 2022, 11:10:06 PM1/16/22
to
local10 wrote:

>> Is google broken where you live?
>
> It's 2022, who in the right mind would use g**gle nowadays?!

...

Didn't this use to be a friendly place?

Or did I accidentally post to the Usenet group instead of the
project user ML?

local10

unread,
Jan 16, 2022, 11:50:05 PM1/16/22
to
Jan 17, 2022, 04:01 by moase...@zoho.eu:

> local10 wrote:
>
>>> Is google broken where you live?
>>>
>>
>> It's 2022, who in the right mind would use g**gle nowadays?!
>>
>
> ...
>
> Didn't this use to be a friendly place?
>


Those who suggest that you use google are not your friends. You can start here:

1. https://en.wikipedia.org/wiki/Criticism_of_Google

2. https://nomoregoogle.com/

Regards,

deloptes

unread,
Jan 17, 2022, 6:40:05 AM1/17/22
to
local10 wrote:

> Those who suggest that you use google are not your friends. You can start
> here:
>
> 1. https://en.wikipedia.org/wiki/Criticism_of_Google
>
> 2. https://nomoregoogle.com/
>

Oh come on, it is a synonym for a search engine. Of course it is a sh*t
business model they have towards customers/users, but the search engine is
really good.
I've tried duckduckgo for some time, but it is not comparable and it is also
understandable. I agree it would be better we use alternatives, but in
terms of quality, there are none.

to...@tuxteam.de

unread,
Jan 17, 2022, 7:10:05 AM1/17/22
to
We have had this discussion already. The way you put it in absolute
terms is simply wrong.

Google has much more context on your query, because they track you.
You'll have to learn to provide DDG with that missing context, then the
results are comparable. You get to learn a bit about search in the
process :-)

I've actually switched from Google to DDG (roughly six years ago). From
time to time (about twice a year) I still resort to Google, especially
when I don't understand why I'm not getting results I expect.

Cheers
--
t
signature.asc

Lee

unread,
Jan 17, 2022, 12:10:05 PM1/17/22
to
I suspect google search result quality is a result of it learning your
preferences.

Years ago I agreed with you - google was _the_ search engine. Then I
started using alternatives exclusively and ... 3 years later[??] I
tried google again and the results sucked.

Regards,
Lee
0 new messages