You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have an issue with pdf thumbnail generation on Neos 7.1 with Imagick.
Steps to Reproduce
install neos demo
go to the media module
find the pdf neos-1.2.0-deps-graph.pdf
Expected behavior
you see a thumbnail
Actual behavior
you see an endless loading spinner:
Digging further:
when you inspect (dev tools) the loading spinner, and search for the img tag which should display the thumbnail, and follow the source (something like: http://my-cool.site/media/thumbnail/4b1f64bb-14d9-47fc-98e9-4a4ae6161faa), you will get a 500 error:
Unable to generate thumbnail for the given document (filename: neos-1.2.0-deps-graph.pdf, SHA1: c0e682d8e660aa3f102d6269915c6a13fa69ed3e)
This happens with all pdfs. Also newly uploaded.
The detail view works fine:
Affected Versions
The 'default' driver GD (when i comment out Neos -> Flow -> Imagine) seems to work. GD doesnt create a thumbnail, and you will see a pdf icon svg (/_Resources/Static/Packages/Neos.Media/IconSets/vivid/pdf.svg):
To my knowledge:
Neos: 7.1
Flow: 7.1
The text was updated successfully, but these errors were encountered:
The nested exception with the security policy gives a clear hint on the ImageMagick policy.xml (https://imagemagick.org/script/security-policy.php) which by default forbids actions on PDF files.
You would need to adjust the configuration in your ImageMagick Policy to something like <policy domain="coder" rights="read|write" pattern="PDF" />.
(The details-view is a JS PDF viewer)
I only needed to create a config file, where ImageMagick expects it: $HOME/.config/ImageMagick/policy.xml
(One can also set the environment variable MAGICK_CONFIGURE_PATH to the directory where your policy.xml is in.)
And added in this policy.xml your snippet:
Description
i have an issue with pdf thumbnail generation on Neos 7.1 with Imagick.
Steps to Reproduce
neos-1.2.0-deps-graph.pdf
Expected behavior
you see a thumbnail
Actual behavior
you see an endless loading spinner:
Digging further:
when you inspect (dev tools) the loading spinner, and search for the img tag which should display the thumbnail, and follow the source (something like:
http://my-cool.site/media/thumbnail/4b1f64bb-14d9-47fc-98e9-4a4ae6161faa
), you will get a 500 error:Unable to generate thumbnail for the given document (filename: neos-1.2.0-deps-graph.pdf, SHA1: c0e682d8e660aa3f102d6269915c6a13fa69ed3e)
Nested Exception
attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408
More detail:
This happens with all pdfs. Also newly uploaded.
The detail view works fine:
Affected Versions
The 'default' driver GD (when i comment out
Neos -> Flow -> Imagine
) seems to work. GD doesnt create a thumbnail, and you will see a pdf icon svg (/_Resources/Static/Packages/Neos.Media/IconSets/vivid/pdf.svg
):To my knowledge:
Neos: 7.1
Flow: 7.1
The text was updated successfully, but these errors were encountered: