Hello Ed,

I was just able to convert ~4.5MB PDF at demo server
the command line for `convert ....` ws more or less the same

"Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 "

What is your OS and ImageMagic version?
Maybe you can privately share your PDF with me so I can test?


/etc/ImageMagick-6/policy.xml

Is the correct file to change settings, but for now I don't see what is
wrong

256MiB is correct syntax I guess it is used to separate millions of bytes
and 1024*1024*1024 of bytes :)


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

> 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
>
>

-- 
Best regards,
Maxim

Reply via email to