Move image dpi setting to writter_options
This commit is contained in:
parent
b9af8d2da2
commit
14d91a7915
@ -789,7 +789,6 @@ class Escpos(object):
|
|||||||
:type center: bool
|
:type center: bool
|
||||||
"""
|
"""
|
||||||
image_writer = ImageWriter()
|
image_writer = ImageWriter()
|
||||||
image_writer.dpi = self._dpi() # Image dpi has to match the printer's dpi
|
|
||||||
|
|
||||||
# Check if barcode type exists
|
# Check if barcode type exists
|
||||||
if barcode_type not in barcode.PROVIDED_BARCODES:
|
if barcode_type not in barcode.PROVIDED_BARCODES:
|
||||||
@ -810,6 +809,7 @@ class Escpos(object):
|
|||||||
"quiet_zone": 0, # horizontal padding
|
"quiet_zone": 0, # horizontal padding
|
||||||
"text_distance": text_distance,
|
"text_distance": text_distance,
|
||||||
"font_size": font_size,
|
"font_size": font_size,
|
||||||
|
"dpi": self._dpi(), # Image dpi has to match the printer's dpi
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user