From 2314084cb1806660cf41ecdf29222bed62432d40 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 14 Feb 2019 17:18:26 +0000 Subject: [PATCH] Made thumbnails bigger, for new Vue client --- openflexure_microscope/camera/capture.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openflexure_microscope/camera/capture.py b/openflexure_microscope/camera/capture.py index 331bb61f..0ee440cb 100644 --- a/openflexure_microscope/camera/capture.py +++ b/openflexure_microscope/camera/capture.py @@ -10,7 +10,7 @@ from PIL import Image import atexit pil_formats = ['JPG', 'JPEG', 'PNG', 'TIF', 'TIFF'] -thumbnail_size = (60, 60) +thumbnail_size = (200, 150) BASE_CAPTURE_PATH = os.path.join(os.path.expanduser('~'), 'micrographs') #: str: Base path to store all captures TEMP_CAPTURE_PATH = os.path.join(BASE_CAPTURE_PATH, 'tmp') #: str: Base path to store all temporary captures (automatically emptied) @@ -385,6 +385,7 @@ class CaptureObject(object): """ Returns a thumbnail of the capture data, for supported image formats. """ + global thumbnail_size # If no thumbnail exists, try and make one if not self.thumb_bytes: logging.info("Building thumbnail")