python-escpos
python-escpos copied to clipboard
Printing image over the network is stop in the middle.
Hi, I try to print images over the local network. but it is stop in the middle.
image size is 457 × 1324 px.
I don't know the cause... Please help ...!
from escpos.printer import Network
from PIL import Image
width = 700
height = 2213
img = Image.open('test.jpeg')
image = img.resize((width, height))
p = Network("192.168.1.100") #Printer IP Address
p.set(align='center')
p.image(image, True)
p.cut()
Converting from jpeg to BMP worked fine!