Skip to content

Commit

Permalink
rotate image before printing it
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitguigal committed May 19, 2015
1 parent f1cec5f commit d74d49c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ RUN wget --no-check-certificate https://github.com/aeberhardo/phantomjs-linux-ar
bunzip2 *.bz2 && \
tar xf *.tar

RUN wget --no-check-certificate https://github.com/benoitguigal/python-epson-printer/archive/v1.7.zip && \
unzip v1.7.zip && \
rm v1.7.zip && \
cd python-epson-printer-1.7 && \
RUN echo 'disable cache'
RUN wget --no-check-certificate https://github.com/benoitguigal/python-epson-printer/archive/v1.7.1.zip && \
unzip v1.7.1.zip && \
rm v1.7.1.zip && \
cd python-epson-printer-1.7.1 && \
python setup.py install

RUN pip install gphoto2==1.1.0 \
Expand Down
2 changes: 1 addition & 1 deletion figureraspbian/devices/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self):
self.printer.set_print_speed(2)

def print_ticket(self, ticket_data):
self.printer.print_image_from_buffer(ticket_data)
self.printer.print_image_from_buffer(ticket_data, rotate=True)
self.printer.linefeed(4)
self.printer.cut()

Expand Down

0 comments on commit d74d49c

Please sign in to comment.