-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use embedded previews of ZIP-like files #20319
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.
That is so awesome!!
Code looks good!
Maybe some tests? 🙈
Hm, not sure how I can properly write tests for that as the preview providers don't support DI yet. |
Ah ok :) |
Ah, that was not done! I was happy this looked so simple with the first commits 🙈 |
It is now, I just forgot to push a new file and bump the autoloader. |
lib/private/Preview/Krita.php
Outdated
@@ -0,0 +1,53 @@ | |||
<?php | |||
/** | |||
* @copyright Copyright (c) 2016, ownCloud, Inc. |
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.
Nope
Nice 👍 Works for me 🎉 server/config/config.sample.php Lines 981 to 1032 in 53db05a
|
@juliushaertl please address the comments and we can get this in |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
e843c89
to
5d27ed5
Compare
Done |
Some filetypes like OpenDocument are basically just zip files and contain a preview image already that we can extract to provide previews without requiring external dependencies.
This implements an abstract class to extract as well as two providers for OpenDocument and Krita files.