Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converting PDF to PNG using imagemagick needs root permission #41

Open
teuben opened this issue Jan 18, 2023 · 1 comment
Open

converting PDF to PNG using imagemagick needs root permission #41

teuben opened this issue Jan 18, 2023 · 1 comment
Labels
Basically Done all but marked as done

Comments

@teuben
Copy link
Contributor

teuben commented Jan 18, 2023

On standard ubuntu ImageMagick doesn't have enough permission, and the RSR waterfall plot is not created:

  convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
  convert-im6.q16: no images defined `rsr.wf.png' @ error/convert.c/ConvertImageCommand/3258.

the solution is to edit /etc/ImageMagick-*/policy.xml:

  rights="read | write" pattern="PDF" 
@teuben
Copy link
Contributor Author

teuben commented Jan 18, 2023

A non-root solution is to use $LMTOY/etc/policy.xml and copy it to ~/.config/ImageMagick/policy.xml

@teuben teuben added the Basically Done all but marked as done label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Basically Done all but marked as done
Projects
None yet
Development

No branches or pull requests

1 participant