Skip to content
Prev Previous commit
Next Next commit
format with black
  • Loading branch information
patkan committed Jul 27, 2026
commit 1b311876e23d70cf0d25e7e7a4b4ee1fd82a85e1
5 changes: 1 addition & 4 deletions src/escpos/escpos.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,7 @@ def image(
32 if high_density_vertical else 0
)
header = (
ESC
+ b"*"
+ density_byte.to_bytes()
+ self._int_low_high(im.width, 2)
ESC + b"*" + density_byte.to_bytes() + self._int_low_high(im.width, 2)
)
outp = [ESC + b"3" + int.to_bytes(16)] # Adjust line-feed size
for blob in im.to_column_format(high_density_vertical):
Expand Down
Loading