From 15f5bea267ed0c92ea8bd868cb5af59978eb1ecb Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Tue, 15 May 2018 22:06:40 +0200 Subject: [PATCH] Printer settings updated --- photobooth/defaults.cfg | 6 +++--- photobooth/gui/GuiPostprocess.py | 2 +- photobooth/printer/PrinterPyQt5.py | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/photobooth/defaults.cfg b/photobooth/defaults.cfg index f3030ff..e549459 100644 --- a/photobooth/defaults.cfg +++ b/photobooth/defaults.cfg @@ -30,7 +30,7 @@ enable = True # Printer module to use (qt5) module = qt5 # Paper width in mm -width = 150 +width = 148 # Paper height in mm height = 100 @@ -52,9 +52,9 @@ num_x = 2 # Number of pictures in vertical direction num_y = 2 # Size of output picture in horizontal direction -size_x = 1920 +size_x = 3496 # Size of output picture in vertical direction -size_y = 1080 +size_y = 2362 # Minimum distance between thumbnails in horizontal direction min_dist_x = 20 # Minimum distance between thumbnails in vertical direction diff --git a/photobooth/gui/GuiPostprocess.py b/photobooth/gui/GuiPostprocess.py index 96620d9..789497e 100644 --- a/photobooth/gui/GuiPostprocess.py +++ b/photobooth/gui/GuiPostprocess.py @@ -35,7 +35,7 @@ class PrintPostprocess(GuiPostprocess): super().__init__(**kwargs) Printer = lookup_and_import(printer.modules, printer_module, 'printer') - self._printer = Printer(page_size, True) + self._printer = Printer(page_size) def get(self, picture): diff --git a/photobooth/printer/PrinterPyQt5.py b/photobooth/printer/PrinterPyQt5.py index 3a5be7c..2cea014 100644 --- a/photobooth/printer/PrinterPyQt5.py +++ b/photobooth/printer/PrinterPyQt5.py @@ -19,6 +19,7 @@ class PrinterPyQt5(Printer): self._printer = QPrinter(QPrinter.HighResolution) self._printer.setPageSize(QPageSize(QSizeF(*page_size), QPageSize.Millimeter)) + self._printer.setColorMode(QPrinter.Color) logging.info('Using printer "%s"', self._printer.printerName())