Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5273

Python • printing image in python

$
0
0
Hello,

I would like to print an image in python.
I have a label color printer. When I try to print by the iamge viewer of the system, everthing works well (just need to select the correct paper type 50mm).

In python, I've tried with the following code but only printing text is working :

Code:

os.command("lp smiley.png")
I suppose it's a problem of resolution and paper size. How can I change the paper settings ?

Thanks a lot
Max

Statistics: Posted by mchimot — Wed Jul 17, 2024 11:46 am



Viewing all articles
Browse latest Browse all 5273

Trending Articles