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
660 stars 389 forks source link

Display automatically generated oval image logo for packager codes #6500

Open stephanegigandet opened 2 years ago

stephanegigandet commented 2 years ago

Is your feature request related to a problem? Please describe.

Packager codes like FR 54.001.003 CE are displayed on products in an oval logo. We could display this logo on product pages, knowledge panels etc.

See https://github.com/openfoodfacts/openfoodfacts-server/pull/3937

Describe the solution you'd like

A logo generator that generates a SVG image for a packager code.

Images could be cached, and generated on the fly when needed.

Describe alternatives you've considered

No response

Additional context

No response

Number of products impacted

No response

Time per product

No response

Fienne commented 2 years ago

Hello @stephanegigandet can I work on this

alexgarel commented 2 years ago

@Fienne do you have a bit of knowledge in svg ? I think it can be done by designing the svg and then using it as a template. The hard part is that you may have to down scale the font size if the code size vary (but a simple rule might be sufficient)

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 90 days with no activity.