Label: Changed defaults and barcode size

This commit is contained in:
2022-04-23 18:29:04 +02:00
parent 7e977881b4
commit 2f6aca3c0d
2 changed files with 16 additions and 7 deletions

View File

@@ -105,12 +105,13 @@ class ContainerPrintLabelView(LoginRequiredMixin, generic.DetailView):
fmt='image',
description=container_description,
description_line2=container_description_line2,
writer_options={'font_size': 14,
'module_height': 10.0,
'quiet_zone': 4.5,
'text': 'This is the text',
'text_distance': 1.0
})
writer_options={})
'''writer_options={'font_size': 14,
'module_height': 10.0,
'quiet_zone': 4.5,
'text': 'This is the text',
'text_distance': 1.0
})'''
context['barcode_img'] = pil_to_html_imgdata(label_image, fmt='PNG')
context['logs'].append('Image created')
if num_copies > 0: