Hello,

I tried modifying the file /etc/ImageMagick-6/policy.xml but that didn't work (unless that file is still in some kind of OP cache ?) - I noticed that there appeared to be errors in the file settings - I have commented at the end of line:

<!-- <policy domain="system" name="memory-map" value="anonymous"/> --> should this be "anonymous" ? <policy domain="system" name="max-memory-request" value="2GB"/> this was originally "256MiB" - isn't that syntax wrong ?
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
<policy domain="resource" name="memory" value="2GB"/> this was originally "256MiB" - isn't that syntax wrong ? <policy domain="resource" name="map" value="2GB"/> this was originally "256MiB" - isn't that syntax wrong ?
<policy domain="resource" name="width" value="16KP"/>
<policy domain="resource" name="height" value="16KP"/>
<policy domain="resource" name="list-length" value="228"/>
<policy domain="resource" name="area" value="128MB"/> this was originally "128MiB" - isn't that syntax wrong ? <policy domain="resource" name="disk" value="1GB"/> this was originally "128MiB" - isn't that syntax wrong ?
<!-- <policy domain="resource" name="file" value="768"/> -->
<!-- <policy domain="resource" name="thread" value="4"/> -->
<!-- <policy domain="resource" name="throttle" value="0"/> -->
<!-- <policy domain="resource" name="time" value="3600"/> -->
<!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
<!-- <policy domain="module" rights="none" pattern="{PS,PDF,XPS}" /> --> Do I need to uncomment this and give read|write rights here?
<!-- <policy domain="delegate" rights="none" pattern="HTTPS" /> -->
<!-- <policy domain="path" rights="none" pattern="@*" /> -->
<!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
<!-- <policy domain="cache" name="synchronize" value="True"/> -->
<!-- <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> --> <!-- <policy domain="system" name="pixel-cache-memory" value="anonymous"/> --> I commented this out and added:
<policy domain="system" name="pixel-cache-memory" value="1GB"/>
<!-- <policy domain="system" name="shred" value="2"/> -->

I have never modified this file before and am unsure of the syntax needed and why "anonymous" is placed as a value.

Am I doing the right thing, or making a mistake here?

Best,

Ed

On , Maxim Solodovnik wrote:

Hello Ed,

I guess there is something wrong with PDF and/or ImageMagic ....

I would check
1) file "/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf" exists and it is valid PDF
2) try to run ```
convert -density 150 -define pdf:use-cropbox=true /opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf +profile '*' -quality 90 /opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png
``` from terminal at OM server and check the output :)

On Tue, 10 Jan 2023 at 16:41, <i...@bureau-de-poste.net> wrote:

Hi,

Using 6.3.0 : when I try to upload a very small .pdf file, I receive this error (and it does not display on the Whiteboard):

THERE WERE ERRORS WHILE PROCESSING THE FILE

FILE IS NOT FOUND

EXIT VALUE
CONVERSION MESSAGES

1
process: convert PDF to images command: convert -density 150 -define pdf:use-cropbox=true /opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/d3615d92-6778-4074-a1c6-c441419d024a.pdf +profile '*' -quality 90 /opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png exception: null error: convert-im6.q16: no images defined `/opt/om_data/upload/files/d3615d92-6778-4074-a1c6-c441419d024a/page-%04d.png' @ error/convert.c/ConvertImageCommand/3229. exitValue: 1 optional: false out:

Is this a bug?

Best,

Ed

  --

Best regards,
Maxim

Reply via email to