-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
Allow to pick a price proof from your online proof gallery #5326
Comments
@teolemon cf. @raphael0202 @raphodn
I cannot picture exactly how much it will prevent the overload of proofs. I suggest that in "Prices" they recognize identical proof images and return the "old" proof id if relevant - without storing the new one.
Nice feature, though. Possible incoherence in the "prices" data model: there are no date or location for proofs:
|
|
I still believe it's a minor issue for very specific rare use cases. And you would need the user to be aware enough of the space needed on the server and to check the proof image repository instead of just taking a new picture. Would probably be better to systematically ask the user for camera / gallery and also latest local proof / server proofs. Btw, surprised it got the "top issue" label... |
@raphael0202 @raphodn Are there some plans about getting smaller versions of proof images, like max width or height = 400? |
We already compress the images (done by the web app), so the images shouldn't be that big in size |
Thanks for your answer! |
Not yet, but it's something we can implement. And to answer your latest question, yes we only compress it server-side with webp, we don't resize it. |
@raphael0202 In OFF there are 100, 200 and 400 versions (max width and max height). |
I created an issue on Open Prices for this: openfoodfacts/open-prices#340 |
|
@teolemon Not sure what you mean: in Smoothie we don't upload a proof without prices. |
In some cases, you can add 1 receipt with only 10 out of 48 prices. And this receipt is available for completion server side (the web app already does that) |
@teolemon Indeed, as long as you actually created prices (with a proof), the proof is uploaded. |
openfoodfacts/open-prices#340 was merged & deployed ! example: |
Thank you @raphodn, now this issue is blocked on our implementation in dart - openfoodfacts/openfoodfacts-dart#978 |
Thanks again @raphodn, I've just tested, that's much faster for our proof gallery! |
@raphodn @raphael0202 @teolemon Testing the "add a price to an existing proof taken from the gallery" feature, I've noticed an unexpected behavior regarding duplicates. |
The only thing that is currently missing in this issue is adding the "pick a proof from proof gallery" to "take a picture" and "pick a picture from the local gallery". |
Problem
Code pointers
Part of
The text was updated successfully, but these errors were encountered: