Please, take a look with this:

sudo nano /etc/ImageMagick-6/policy.xml
...and comment the two follow lines, near to bottom file:

<policy domain="coder" rights="none" pattern="PS" /><policy domain="coder" 
rights="none" pattern="PDF" />
...to:
<!-- <policy domain="coder" rights="none" pattern="PS" /> --><!-- <policy 
domain="coder" rights="none" pattern="PDF" /> -->
Press in the keyboard Ctrl+x, will ask to save, press Y, and press Enter to 
exit nano editor.This last must be repeated every time you update the 
ImageMagick, or maybe you´ll be asked to keep or replace the “policy.xml” file 
(modified by us), then pres “Keep” button.




On Sun, 30 Nov 2025 20:19:35 +0100
"K. Kamhamea" <[email protected]> wrote:

> Sorry missed the second part:
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 22.04.4 LTS
> Release:        22.04
> Codename:       jammy
> 
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Virenfrei.www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> 
> Am Sa., 29. Nov. 2025 um 13:57 Uhr schrieb Alvaro <[email protected]>:
> 
> > ...may be ImageMagick has an update and need
> > repeat the configuration to solve the question.
> >
> > Would be good to know wich is your OS server.
> >
> >
> > --------
> >
> >
> >
> > On Sat, 29 Nov 2025 19:42:30 +0700
> > Maxim Solodovnik <[email protected]> wrote:
> >
> > > Hello :))
> > >
> > > On Sat, 29 Nov 2025 at 19:01, K. Kamhamea <[email protected]>
> > wrote:
> > >
> > > > I admit   I see a strange behavior I still use an older OM version
> > which
> > > > is fine for all my purposes.
> > > >
> > > > About 2 weeks ago I uploaded a pdf to my whiteboard and everything was
> > OK.
> > > > But now I get an error even if I try to upload the same file again.
> > > >
> > > > process: convert PDF to images
> > > > command: convert -density 150 -define pdf:use-cropbox=true
> > > >
> > /opt/om_data/upload/files/2ed1e520-ae10-4637-ba99-f0e235e56022/2ed1e520-ae10-4637-ba99-f0e235e56022.pdf
> > > > +profile '*' -quality 90
> > > >
> > /opt/om_data/upload/files/2ed1e520-ae10-4637-ba99-f0e235e56022/page-%04d.png
> > > >
> > >
> > > Could you please run the above command as `nobody` user?
> > >
> > > i.e.
> > >
> > > `sudo -u nobody convert -density 150 -define pdf:use-cropbox=true
> > >
> > /opt/om_data/upload/files/2ed1e520-ae10-4637-ba99-f0e235e56022/2ed1e520-ae10-4637-ba99-f0e235e56022.pdf
> > > +profile '*' -quality 90
> > >
> > /opt/om_data/upload/files/2ed1e520-ae10-4637-ba99-f0e235e56022/page-%04d.png`
> > >
> > > What would be result?
> > >
> > > exception: java.io.IOException: Cannot run program "convert": error=0,
> > > > Failed to exec spawn helper: pid: 2594625, exit value: 1
> > > > error: Exception after 00:00:00.001 of work; Cannot run program
> > "convert":
> > > > error=0, Failed to exec spawn helper: pid: 2594625, exit value: 1
> > > > exitValue: -1
> > > > optional: false
> > > > out:
> > > >
> > > > I testet the convert function and it is still present. I can use it
> > from
> > > > any user. I changed permission of the upload folder from nobody:root to
> > > > nobody:nogroup but nothing changed
> > > >
> > > > I hope you know a solution.
> > > >
> > > >
> > > > <
> > https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > > > Virenfrei.www.avast.com
> > > > <
> > https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> > >
> > > > <#m_-508262369541591607_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > > >
> > >
> > >
> > > --
> > > Best regards,
> > > Maxim
> >
> >
> >
> >



Reply via email to