-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
RAW files (.CR2) not shown in Photos app but are shown in Files app. #530
Comments
Hi, Photos only supports jpeg and png for now. @jancborchardt any insights? Would it make sense to add cr2? Do people really use raw that much? |
I'm quite certain Camera RAW previews app is a very popular one, I use it in conjuction with preview-generator. I guess my main confusion is, why wouldn't the Photos app be using the image mimetype to determine if it should display a preview or not, rather than looking at file name extension? After all, an image is an image which is a photo :) |
That's huge debate :) So we have to draw a line somewhere 🤷 |
I didn't think .txt and .pdf etc.. would be registered as an 'image' mimetype and rather text/pdf or text? I just thought they'd have registered with a preview provider? Isn't there a difference? |
Yes, they will be seen as their associated mimetype:
I answered that we need to filter the mimetype before even having to check if a preview exists before. |
ok, I'm not sure what is best, it just seems to me that if something has a mimetype of 'image' (whether pdf or not) and has a preview provider registered, it should have all the appropriate sized preview jpegs generated for it and thus why not display it? It's just the presentation in the photos app which I really like, it's nicer than files when navigating huge servers with lots of files and folders. I'm ultimately just keen to see .PSD and .CR2 as for photographers it's quite important, however it seems harder to maintain it that way. Perhaps a setting that's off by default is perhaps better to enable Photos to display all mimetypes with preview providers registered. |
That would defeat the entire purpose of photos. This would just be a files replacement. 🤷 |
My entire photo library is raw images. |
What about whitelisting all mimes with prefix "image/" that has a preview? |
Actually this is an one-liner PR. |
Hello, I've tried your fix for Nikon NEF files, but nothing in Photos. In public const IMAGE_MIMES = [
'image/png',
'image/jpeg',
'image/heic',
'image/x-nikon-nef', // added this
'image/tiff', // and added that
// 'image/gif', // too rarely used for photos
// 'image/x-xbitmap', // too rarely used for photos
// 'image/bmp', // too rarely used for photos
// 'image/svg+xml', // too rarely used for photos
]; Did I missed something ? I'm not a dev, but if it could help to support these files. |
Aaaah, I was too fast. So we can get the list of mimes that nextcloud supports, instead of relying on this hardcoded list. |
Or, you could just let the user decide, which mimetypes he wants to see, regardless wether the plugin is installed or not. IMAGE_MIMES + config-value When nextcloud/server#22873 is implemented, you can change that. |
One thing to consider here is, what and how will be displayed when there will be both CR2 + JPG in the same folder. It would be nice to have only one of them being shown in the preview (probably jpg would be better pick in that case, as it's much smaller thank CR2 and thus full picture will load also much faster), unless there will be a way to configure that. Otherwise we'd get doubled previews of photos and much worse loading times every second file. If I recall properly, the same problem is present ie. in gwenview from KDE, but that one can be at least solved with running 'gwenview *.JPG", on nextcloud instance that would be much bigger problem. |
Could you just please extend the f***cking IMAGE_MIMES list with image/x-dcraw like I did in my patch.? When you happen to not have the Camera RAW Previews-app installed, a message is displayed, that the image is not previewable. On the other hand. People who make RAW photos might not be devs and don't want to wait months before someone fixes core. Most photographers don't care about RAW+JPG. We have cRAW now. |
this will not happen in the near future ... CR2,3-Users will care |
Photos does not show previews of mimetypes from Camera RAW previews. The 'Files' app shows the previews properly (NOTE: I generated them using preview-generator), when I click on .CR2 etc.. from the 'Files' app it opens them in the preview viewer. When I switch to 'Photos' app, none of them show up (and folders which have purely CR2 are not shown at all).
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: