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

ImageMagick update breaks PDF thumbnailing. #9

Open
benanhalt opened this issue Nov 5, 2018 · 3 comments
Open

ImageMagick update breaks PDF thumbnailing. #9

benanhalt opened this issue Nov 5, 2018 · 3 comments
Assignees

Comments

@benanhalt
Copy link
Contributor

The following error started occurring:

convert: not authorized `/home/specify/attachments/bishopmuseum/originals/f8473d71-1e4d-4b85-9e15-963e5c2a4c12.pdf' @ error/constitute.c/ReadImage/412.
convert: unable to open image `white': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: unable to open image `white': No such file or directory @ error/blob.c/OpenBlob/2712.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501.
convert: no images defined `/home/specify/attachments/bishopmuseum/thumbnails/f8473d71-1e4d-4b85-9e15-963e5c2a4c12.png' @ error/convert.c/ConvertImageCommand/3210.
@benanhalt
Copy link
Contributor Author

See: https://stackoverflow.com/a/52661288

Changing the PDF policy to "read" in /etc/ImageMagick-6/policy.xml seems sufficient:
<policy domain="coder" rights="read" pattern="PDF" />

@benanhalt benanhalt reopened this Oct 21, 2022
@benanhalt
Copy link
Contributor Author

This fix needs to be added to the docker image.

@grantfitzsimmons
Copy link
Contributor

@melton-jason Can you make this change in the default image in Docker?

delarocamcas pushed a commit to calacademy-research/cas-web-asset-server that referenced this issue Dec 5, 2023
added derived test classes of base picturae import classes.  Created new testing modules for picturae_importer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants