Castlenine / svelte-qrcode

QR Code generator for Svelte & SvelteKit, with no dependencies
MIT License
20 stars 3 forks source link

Made logos adjust size to fit modules + made logo padding use modules as units #5

Closed x032205 closed 1 month ago

x032205 commented 1 month ago

This change makes logo sizes "adjust" to fit modules. The logo sizes still use "% of QR code" as the scaling unit, but they slightly adjust to prevent cut-off modules.

The second change was to make logoPadding use modules as units. So now a padding of 1 will be equivalent to removing one circle of units around the logo.

These changes were made to solve this issue: https://github.com/Castlenine/svelte-qrcode/issues/3

Before

image image image

After

image image image
Castlenine commented 1 month ago

Thank you for your good work