Closed AdamCarballo closed 6 years ago
@AdamEC Do you know if your DNG files have previews in them? You could upload a test here: [REDACTED] and I could check it if you want.
@cowai I uploaded one of the files, thanks! I think the issue is with memory. For some reason processing NEF files is possible, but DNG files will use all the memory of the server, and the preview will fail if I open a folder with all of them inside.
I isolated only one DNG file (this one was 4MB only though. Almost all my DNG files are around 23MB), and after around 1 min a thumbnail appeared. The previews still return an error, and the logs keep saying that there is no preview data, but at least is something.
The file you sent had a tiff preview and not a jpeg preview. I am testing locally to get tiff running, but that will only work if you have php imagick module installed. I need to think about how this could work for those with GD as well.
Aha, ok! I didn't want to install imagick, but I guess I'll just have to do it now... I guess the DNG that worked had a jpeg preview, since came from another camera. Thanks for the help!
@cowai So... I installed imagick, and Nextcloud is now recognizing it (the theming tab is no longer asking me to install it to support SVG images, for example) but I still get the no preview data error.
Do you know if I need to configure it somewhere else?
@AdamEC The code for TIFF previews is now pushed and a new release is pushed to the nextcloud app store. Right now the code does not check if you have TIFF support in imagick or not, but that is another issue. Let me know if the v0.5.3 works for you.
Updated to v0.5.3, now all my DNG files have beautiful previews. Thank you so much for the help, and the update!
@AdamEC Good to hear it is working for you. Let me know if you find any other issues.
Hey, apparently my server can't generate previews of DNG files. Y tried with NEF files, and is working just fine, so I don't know if is because DNG is not supported (haven't found if there is a list of supported formats), or something else is broken on my end.
The logs will just return
Camera Raw Previews: Unable to find preview data
when trying to preview any DNG file, and the preview will be loading forever with a warning error about not being a preview available.I also tried multiple DNG files from multiple cameras and sources, without any results...