ihabunek / pdf417-py

PDF417 barcode generator for Python
Other
84 stars 28 forks source link

Float module #14

Closed ProdByGR closed 4 years ago

ProdByGR commented 5 years ago

if i do render_image(data, scale=4.5)

i get a

TypeError: integer argument expected, got float

how can i use float instead of integer in scale?

ihabunek commented 5 years ago

Non-integer scale does not makes sense. If you specify scale=4.5 and ratio=3, the dots on the bar chart would have to be 4.5px by 13.5px large, which is not possible because images don't have fractional pixels.