-
Notifications
You must be signed in to change notification settings - Fork 3.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
Google Camera effects broke camera upload feature #2407
Comments
btw. I went ahead to check for a quick poc - after changing CameraUploadsSyncJobService.java#L130-L132 from
to
the pictures from different modes of Google Camera will be detected / not uploaded due to the fact that localPath is reassembled instead of |
It really is a pitty that it seems like nobody of the OC team cares. But hey, then I will go on patching this locally to make this work for me.... |
Hi @schwedenmut , my apologies for the late response. We are very focused on some architectural changes in the current app. I see you have already discovered the reason of your issue and even written some pieces of code. I highly encourage you to send us your solution via a pull request, have look at https://github.com/owncloud/android#join-development, it might be useful. Anyway, if you have any other question, do not hesitate to ping me. As soon as you send us your solution, we will review it and we could even include it in our app. Thanks! |
I will improve and tidy up my local changes and will create a PR shortly. 👍 |
Actual behaviour
While using the default Google Camera application on my Pixel 2, all normal taken pictures are considered by the Camera Uploads feature. But by using effekts like Portrait, Panorama, Burst mode, the images will not be synchronized to OwnCloud.
I checked both on 415f88f, current ownCloud 2.9.3 and Sciebo based on 2.8.0
Expected behaviour
Pictures taken by the default camera applikation should be synched, no matter if taken as Portrait or Panorama.
Steps to reproduce
Can this problem be reproduced with the official owncloud server?
(url: https://demo.owncloud.org, user: test, password: test)
I don't think, this is a server issue, more likely a client feature problem.
Environment data
Android version: 9 5.12.2018
Device model: walleye Pixel 2
Stock or customized system: both default ownCloud and Sciebo system
ownCloud app version: 2.9.3 / 2.8.0 / 415f88f
ownCloud server version: can't check and doesn't matter
Logs
Can't provide any, sorry.
Places to fix
in CameraUploadsSyncJobService.java#L124, all the files and folders correctly are gathered in an Array, sorted afterwards and then with the function
handleFile()
checked. The problem is, that the Google Camera application persists pictures taken in Portrait, Panorama etc. mode will be persisted into a folder with the familiar timestamp as name. Inside this folder there are at least one picturefile inside it. For example folders of portrait pictures usually contain a normal picture named "00000PORTRAIT_00000_BURST20180218135144728.jpg" and one with blurred background "00100dPORTRAIT_00100_BURST20180218135144728_COVER.jpg". Those pictures will be ignored, because the folder checked inhandleFile()
CameraUploadsSyncJobService.java#L158-L171 is neither a picture nor a video butapplication/octed-stream
as mimeType.The text was updated successfully, but these errors were encountered: