Skip to content

Commit 9f910af

Browse files
authored
Change ANTIALIAS to LANCZOS in asset label generator (#604)
1 parent 6c32db3 commit 9f910af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def generate_label(pk):
374374
barcode = Code39(str(obj.asset_id), writer=ImageWriter())
375375

376376
logo_size = (200, 200)
377-
image.paste(logo.resize(logo_size, Image.ANTIALIAS), box=(5, 5))
377+
image.paste(logo.resize(logo_size, Image.LANCZOS), box=(5, 5))
378378
barcode_image = barcode.render(writer_options={"quiet_zone": 0, "write_text": False})
379379
width, height = barcode_image.size
380380
image.paste(barcode_image.crop((0, 0, width, 100)), (int(((size[0] + logo_size[0]) - width) / 2), 40))

0 commit comments

Comments
 (0)