Closed mariusnop closed 6 years ago
Can you upload an example file somewhere and also check the nextcloud log?
{"reqId":"dyxmz6UhrfPxFTuN7z0Q","level":3,"time":"2018-07-23T15:27:27+02:00","remoteAddr":"31.17.149.44","user":"admin","app":"core","method":"GET","url":"\/core\/preview.pngfile=%2FPhotos%2FDSC04764.ARW&c=a70ca90685d853e40e9cba747b1da36d&x=64&y=64&forceIcon=0","message":"Camera Raw Previews: Unable to find preview data","userAgent":"Mozilla\/5.0 (Maintosh; Intel Mac OS X 10_13_6) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.99 Safari\/537.36","version":"13.0.4.0"}
@mariusnop You probably do not have perl installed right? I bundle a static linux perl binary, but it's only used if there is no perl in PATH. I am planning on making it only opt-in for getting the static perl binary though. If you already have perl installed, then maybe you are using a raw file that is not supported. Can you upload a sample so I can check?
I hadn't installed pearl, but I did that later, without success. The files still cannot be opened. I use different RAW files from rawsamples.ch .
LOG:
{"reqId":"xRInWXdFDPF2UtSBODfK","level":3,"time":"2018-07-24T01:00:17+02:00","remoteAddr":"31.17.149.44","user":"admin","app":"gallery","method":"GET","url":"\/apps\/gallery\/preview\/262?width=2600&height=2600&c=e57d32a388b54161e47b686df476b4aa&requesttoken=Orus%2FOicW%2BIFK39EvAhRQVsX6OdLehGaCwVvP%2BxkykI%3D%3Ac8udl4XYb9RVTxIc6lsrGwtkhrU%2BEEXgXG87e6sugCE%3D","message":"Exception: Preview generation has failed","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.99 Safari\/537.36","version":"13.0.4.0"}
EDIT: pkg search perl sudo pkg install unit-perl5.26-1.2 sudo pkg install perl5.28-5.28.0
pkg search imagick sudo pkg install php72-pecl-imagick-3.4.3_2
can you try
perl $APPFOLDER/camerarawpreviews/vendor/jmoati/exiftool-bin/exiftool -json -preview:all SAMPLE.CR2"
perl /usr/local/www/apache24/data/nextcloud/apps/camerarawpreviews/vendor/jmoati/exiftool-bin/exiftool -json -preview:all SAMPLE.CR2 [{ "SourceFile": "SAMPLE.CR2", "PreviewImage": "(Binary data 2034020 bytes, use -b option to extract)", "ThumbnailImage": "(Binary data 15152 bytes, use -b option to extract)" }]
Looks like this is working.
Yes that seems right. I have experienced nextcloud caching corrupted previews. can you try uploading SAMPLE.CR2 with a new name into nextcloud web ui and see if it works? Also clear logs before it and then try to see if you get a new error into nextcloud.
So, I deleted the log file and uploaded the same file with a different name. However, I get the following error message:
{"reqId":"B5Dn2zNzvLqaAmduJOGQ","level":3,"time":"2018-07-24T22:17:47+02:00","remoteAddr":"31.17.149.44","user":"admin","app":"gallery","method":"GET","url":"\/apps\/gallery\/preview\/305?width=2600&height=2600&c=aa899f383cdbba97240ed051a10dc4bb&requesttoken=ahoPFG2sYOfP7YxDR3tvQv3rsgLc8QVmUmBumu1Viqk%3D%3AI2o%2BfwDoVNGfieEbESgVGK2Y3FCpm1EcBQo63qofwMo%3D","message":"Exception: Preview generation has failed","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/67.0.3396.99 Safari\/537.36","version":"13.0.4.0"}
I have assigned other users to the data, in my case www. However, I was able to create a preview with the perl command you told me above. But I still see no change in the interface.
I am afraid this must be some freebsd-specific issue. I have no experience with it. If you could reproduce it in an environment I could get access to, I might be able to tweak the code to make it work. If you could make a vm image or give ssh access to a test environment that would work.
You are welcome to have current data, as this is a test system. I document every step so that I can follow the installation step by step.
EDIT: I have sent you all relevant data by e-mail.
@mariusnop The fix is now in latest version 0.5.5. Both in Nextcloud Apps and ownCloud Marketplace.
Thanks for your work, I'm really excited about your support and how quickly you can correct your app for bugs. Everything works perfectly.
Thank you!
Hello,
and first of all thanks for this great app!
I have the problem that the app does not work for me. The current situation:
but it is not possible to see RAW data in the preview.