File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -267,14 +267,14 @@ def print_images(self, *printable_images):
267267 def print_image_from_file (self , image_file , rotate = False ):
268268 image = Image .open (image_file )
269269 if rotate :
270- image .rotate (180 )
270+ image = image .rotate (180 )
271271 printable_image = PrintableImage .from_image (image )
272272 self .print_image (printable_image )
273273
274274 def print_image_from_buffer (self , data , rotate = False ):
275275 image = Image .open (io .BytesIO (base64 .b64decode (data )))
276276 if rotate :
277- image .rotate (180 )
277+ image = image .rotate (180 )
278278 printable_image = PrintableImage .from_image (image )
279279 self .print_image (printable_image )
280280
Original file line number Diff line number Diff line change 22from setuptools import setup
33
44setup (name = "python_epson_printer" ,
5- version = "1.7" ,
5+ version = "1.7.1 " ,
66 description = "A library to control Epson thermal printers based on ESC/POS language" ,
77 url = "https://github.com/benoitguigal/python-epson-printer" ,
88 author = "benoitguigal" ,
You can’t perform that action at this time.
0 commit comments