Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing image over the network is stop in the middle. #507

Open
TsuyoshiOtabe opened this issue Feb 27, 2023 · 1 comment
Open

Printing image over the network is stop in the middle. #507

TsuyoshiOtabe opened this issue Feb 27, 2023 · 1 comment

Comments

@TsuyoshiOtabe
Copy link

TsuyoshiOtabe commented Feb 27, 2023

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
Copy link
Author

Converting from jpeg to BMP worked fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant