Uh oh!
There was an error while loading. Please reload this page.
Use embedded previews of ZIP-like files - #20319
Conversation
skjnldsv
left a comment
There was a problem hiding this comment.
That is so awesome!!
Code looks good!
Maybe some tests? 🙈
juliusknorr
commented
Apr 5, 2020
Hm, not sure how I can properly write tests for that as the preview providers don't support DI yet. |
skjnldsv
commented
Apr 5, 2020
Ah ok :) |
Ah, that was not done! I was happy this looked so simple with the first commits 🙈 |
juliusknorr
commented
Apr 5, 2020
It is now, I just forgot to push a new file and bump the autoloader. |
| @@ -0,0 +1,53 @@ | |||
| <?php | |||
| /** | |||
| * @copyright Copyright (c) 2016, ownCloud, Inc. | |||
kesselb
commented
Apr 5, 2020
Nice 👍 Works for me 🎉 server/config/config.sample.php Lines 981 to 1032 in 53db05a |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rullzer
commented
Apr 8, 2020
@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
5d27ed5Comparejuliusknorr
commented
Apr 8, 2020
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.