Label: Changed defaults and barcode size
This commit is contained in:
@@ -110,7 +110,15 @@ def container_label(data, barcode_class='code128', fmt='png', logo_file='./stati
|
||||
'image': python_barcode.writer.ImageWriter
|
||||
}[fmt]
|
||||
barcode_img = constructor(data, writer=writer())
|
||||
img = barcode_img.render(writer_options=options['writer_options'])
|
||||
writer_options = {
|
||||
'font_size': 24,
|
||||
'module_width': 0.25,
|
||||
'module_height': 10,
|
||||
'quiet_zone': 3,
|
||||
'text_distance': 1.0
|
||||
}
|
||||
writer_options.update(options['writer_options'])
|
||||
img = barcode_img.render(writer_options=writer_options)
|
||||
barcode_xsize, barcode_ysize = img.size
|
||||
logo_xsize, logo_ysize = logo_img.size
|
||||
label_xsize = 696
|
||||
|
Reference in New Issue
Block a user