python-escpos icon indicating copy to clipboard operation
python-escpos copied to clipboard

Printing image over the network is stop in the middle.

Open TsuyoshiOtabe opened this issue 3 years ago • 1 comments

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()

TsuyoshiOtabe avatar Feb 27 '23 12:02 TsuyoshiOtabe

Converting from jpeg to BMP worked fine!

TsuyoshiOtabe avatar Feb 27 '23 13:02 TsuyoshiOtabe