Changes

Jump to navigation Jump to search
362 bytes added ,  18:50, 14 July 2020
Line 78: Line 78:  
|}
 
|}
    +
==== Categorize environmental labels in the labels taxonomy ====
 +
It's now possible to add categories to labels to help the apps and website display it in a nicer way. Categorizing environmental labels will greatly help with that.
 +
[https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/labels.txt Categorize environmental labels on GitHub]
 
==== Getting information and logos for environmental labels ====
 
==== Getting information and logos for environmental labels ====
 
* Get the logo in SVG (or PNG otherwise): If we don't have a SVG logo, we'd need one, if possible like this: label-name-as-it-is-in-the-openfoodfacts-url.123x90.svg The height comes in second and should always be 90. You need to calculate the ratio to find out the width. if the logo is 246x180, you need to divide the height by 2 to get to 90, so you need to put height 90, and width 246/2=123.
 
* Get the logo in SVG (or PNG otherwise): If we don't have a SVG logo, we'd need one, if possible like this: label-name-as-it-is-in-the-openfoodfacts-url.123x90.svg The height comes in second and should always be 90. You need to calculate the ratio to find out the width. if the logo is 246x180, you need to divide the height by 2 to get to 90, so you need to put height 90, and width 246/2=123.

Navigation menu