Uninett / nav

Network Administration Visualized
GNU General Public License v3.0
174 stars 38 forks source link

Make qrcode library produce SVG images instead of PNG #2916

Open johannaengland opened 1 month ago

johannaengland commented 1 month ago

We might want to consider an option to produce SVG images, if possible from the qrcode library - in which case we wouldn't need to bother with deciding the physical dimensions (and therefore, storage requirements) of the resulting graphic.

_Originally posted by @lunkwill42 in https://github.com/Uninett/nav/pull/2887#discussion_r1601508875_

johannaengland commented 1 month ago

Potential reference: https://ourcodeworld.com/articles/read/554/how-to-create-a-qr-code-image-or-svg-in-python

johannaengland commented 4 weeks ago

In the last reference group meeting it was decided to offer the option for both SVG and PNG and to have a check before or a setting that switches between these.