Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
anarcat authored Mar 3, 2023
1 parent 4fa71c1 commit 432f661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrencode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def encode_scaled(data, size, version=0, level=QR_ECLEVEL_L, hint=QR_MODE_8,
version, src_size, im = encode(data, version, level, hint, case_sensitive)
if size < src_size:
size = src_size
qr_size = (size / src_size) * src_size
qr_size = (size // src_size) * src_size
im = im.resize((qr_size, qr_size), Image.NEAREST)
pad = (size - qr_size) // 2
ret = Image.new("L", (size, size), 255)
Expand Down

0 comments on commit 432f661

Please sign in to comment.