openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
658 stars 387 forks source link

Return image_packaging_url in API #4442

Open stephanegigandet opened 4 years ago

stephanegigandet commented 4 years ago

Similar to [image_front|ingredients|nutrition]_url

aleene commented 4 years ago

You did not add the packaging to the selected_images. Was that intentional?

mohsin commented 4 years ago

Does it take a while to reflect in production?

aleene commented 4 years ago

You can find the packaging image under images, which is sufficient info.

mohsin commented 4 years ago

@aleene As you mentioned in an earlier comment, adding packaging to selected_images would have been ideal and would enable me to directly get the normal size image from the array and use it like this. However, now I've had to introduce images array field into the product details fetch request in order to achieve the same in my latest commit to PR openfoodfacts/openfoodfacts-androidapp#3565

aleene commented 4 years ago

That is what I did as well. Now you can get rid of all selected_images.

github-actions[bot] commented 9 months ago

This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts