-
Notifications
You must be signed in to change notification settings - Fork 118
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
feat: add preview provider for emf files #3303
Conversation
lib/AppInfo/Application.php
Outdated
@@ -88,6 +89,7 @@ public function register(IRegistrationContext $context): void { | |||
'getPathForToken', | |||
'getWopiForToken', | |||
]); | |||
$context->registerPreviewProvider(EMF::class, '/image\/emf/'); |
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.
Did you give that a test with a Collabora intance setup? We have not migrated our preview class to the IProviderV2 interface (which we really should 🙈 ) and as far as I see it the context registration requires that.
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.
Did you give that a test with a Collabora intance setup?
Yep, it works like a charm ;)
the context registration requires that.
True, the psalm-param type hints IProviderV2.
I guess it's better to use the deprecated way that expects a IProvider instance for now.
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.
Yep, let's stick to that then for now
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Documentation: nextcloud/documentation#11292 |
Summary
For nextcloud/files_emfviewer#1
In addition to nextcloud/server#41395
We added support for image/emf via LibreOffice for 28.
For setups already using Richdocuments/Collabora it's nicer to let the previews generate via collabora web and no local LibreOffice installation is required.
TODO
Checklist