-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add support for Raw files previews #14878
Conversation
Refer to this link for build results (access rights to CI server needed): |
👍 looks good |
@nickvergessen @MorrisJobke mind to review? THX |
Wait for #14857 which just needs a rebase due to a merge conflict and then put this in an app? |
@nickvergessen - OK, I can do it via an app, once the other ImageMagick providers have been moved to an app, so that I can use that as an example. |
well - mime changes have to go to core - moving the preview impl to an app - yes |
@DeepDiver1975 - #14927 is for the new media types |
namespace OC\Preview; | ||
|
||
// Supports many file extensions linked to RAW | ||
class Raw extends Bitmap { |
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.
This should be an app 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.
I can't find the other providers in apps
and all the current providers are still in https://github.com/owncloud/core/tree/master/lib/private/preview
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.
Doesn't matter, its a new provider so it should not be here.
This is just a "memory", so we don't merge it like 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.
OK, waiting for #14803 , with one week to go.
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.
instead of waiting, send a patch?
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.
I don't want to be the guinea pig on this. It was decided that providers need to exist as apps and someone must have a clear vision on how this is going to work, without using any private APIs and without breaking existing apps.
There needs to be at least one provider moved to an app, to make sure this actually works and to serve as a guide for app devs.
Good examples would be a sub-class of the bitmap or office providers since each requires 2 apps (base and sub) which need to communicate with each other using undefined methods (inter-app dependencies).
The movie provider which relies on core classes would be a good case for later as it might highlight missing public methods required to get it to run.
@oparoz @nickvergessen what's the status on this? THX |
My take is that preview providers as apps is an untested concept. There is no process, no documentation. So, from my point of view, there is no harm in adding this provider as the last one and then move everything out for 8.2. It's going to have to be done anyway. @nickvergessen probably has a better idea of how this will all work in the future. |
sounds reasonable to be @oparoz can I ask you to rebase this branch please - THX |
fine by me |
OK, I'll rebase and we can talk about the next steps here: If we're confident that everything will be in place for 8.2, this feature in core should be marked as depreciated. That way we can progressively create replacement apps and delete the whole thing in core for the launch of 8.2 |
Solutions for #13650 owncloud-archive/apps#439 owncloud-archive/apps#1113 Supported formats: * Sony Alpha RAW .arw * Canon RAW 2 .cr2 * Digital Camera Raw .dcr * Digital Negative .dng * EPSON RAW .erf * Intelligent Image Quality RAW .iiq * Kodak DC40/DC50 RAW .kdc * Kodak DC25 RAW .k25 * Nikon RAW .nef * Mamiya RAW .mef * Olympus RAW .orf * Panasonic RAW .rw2 * PENTAX RAW .pef * Fujifilm RAW .raf * Sony RAW File .srf .sr2 * SIGMA RAW .xrf
@oparoz I uploaded an image from the linked site and one of my raw images:
|
I suspect you haven't installed |
Is this somewhere written? Otherwise we need a hint that this is needed. I would like to have it in the sample config too. |
I think that in general, configuring ImageMagick is out of scope of a PR, but since you're the 2nd person running into the issue, a little hint in the sample config wouldn't hurt. Would that be enough you think? |
Well if we can check that programmatically, we should do it, where we check for the imagick plugin |
I could add a check to the class
It should work for most people, but will hinder the move to the apps "domain", because there is no public method equivalent. |
The inspection completed: 4338 Issues, 132 Patches |
Refer to this link for build results (access rights to CI server needed): |
The comment has been added, as well as a simple check for the helper binary. |
Moving this enhancement to 8.2 |
@PVince81 - There is no reason to push this back. It works and is ready to be merged. |
The reason is feature freeze. Only bugfixes are allowed. |
This should not be considered a last minute enhancement. The original PR has been created 3 months ago, long before the feature freeze deadline. Even the last revision is from 5-6 weeks ago. It was added to the list of planned features for 8.1 and it doesn't touch any vital system component unlike some of the bug fixing which has been happening these past weeks. |
Never mind. I've just re-read your definition of Feature Freeze and PRs have to be merged before the deadline. I should have hassled people ;). As providers aren't accepted beyond 8.1, I'll just delete this PR. |
What happened with this? Will it be included in coming releases? |
Unfortunately, no, but this can be added via apps. |
@oparoz Asking because I have some requests here: http://www.sweclockers.com/forum/trad/1212245-stora-owncloud-traden Any plans on including this soon? |
It will never be part of the core, but if you look at the code, you can see that it shouldn't be too difficult for an apps developer to build. |
Out of interest, where is this at? I'm trying to figure out whether preview of RAW images (specifically ORF) is possible in owncloud - it would be very handy for my workflow! |
@mbewley - It is possible, but it requires the development of an app. Since so few people are interested, I'm not sure I'm going to sell one (thousands to set up vs hundreds in subscriptions). |
Replaces #13652
Solution for
#13650
owncloud-archive/apps#439
owncloud-archive/apps#1113
Including media type migration and tests
Supported formats:
Requirements