lyqht / mini-qr

Generate customized qr codes easily 👾
https://mini-qr-code-generator.vercel.app
GNU General Public License v3.0
608 stars 76 forks source link

SVG export has incorrect border radius #59

Closed thorwebdev closed 1 month ago

thorwebdev commented 1 month ago

When exporting as SVG the border radius set to 0 is not applied correctly. Instead border radius of 48px is applied. PNG export is correctly done with no border.

Wonder if it's related to this line? https://github.com/lyqht/mini-qr/blob/main/src/utils/convertToImage.ts#L13

lyqht commented 1 month ago

Whoops, thank you for finding this bug! 😆

lyqht commented 1 month ago

Fixed the issue, here's an svg example with border radius 60px

qr-code (1)