-
Notifications
You must be signed in to change notification settings - Fork 379
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
Allow PDF files for the thumbnail generation #1297
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if everything else works with pdf, we should indeed allow that here, thanks for the PR. i have one question
Co-authored-by: David Buchmann <[email protected]>
can you please adjust the test DataManagerTest::testThrowsIfMimeTypeNotImageOneOnFind and testThrowsIfLoaderReturnBinaryWithMimeTypeNotImageOneOnFind to the new exception message? (see travis-ci build) |
Is it only changes in exception message or something more? Please guide. |
yes, just the expected message. you can find the phpunit output by clicking on "Details" in the |
Please review. |
thanks a lot for this improvement! |
#1122... |
How is pdf thumbnail is supposed to work? |
It generates file of mime type - image only (file extension will not change). It is working and rendering correctly for example: |
Solved by forcing format in configuration. Thank you! |
I have the same issue, the generated thumbnail file is a PDF (not only the extension .pdf, if I edit the file with notepad I can see it starts by |
We can allow PDF files as well for the thumbnail generation which does not require any additional code changes in the bundle.
Please preview and merge.