Skip to content

width and height attributes of generated svg are huge #77

@bortunac

Description

@bortunac

runing

`#!/usr/bin/python
import sys
import pyqrcode
text = sys.argv[1]
scale = sys.argv[2]
err_prt = sys.argv[3]
url = pyqrcode.create(text,err_prt) # error_protection in ['L','M','H'] -- Low make code smaller
url.svg(sys.stdout, scale, module_color="black", quiet_zone=1)
exit(0)`

with 'text' 3 'M'
returns
<svg xmlns="http://www.w3.org/2000/svg" height="333333...." width="33333...."> <path></path> </svg>

I resolved this remeasuring o client side but ... maybe I am wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions