Made thumbnails bigger, for new Vue client
This commit is contained in:
parent
404f28a8e0
commit
2314084cb1
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ from PIL import Image
|
||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
pil_formats = ['JPG', 'JPEG', 'PNG', 'TIF', 'TIFF']
|
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
|
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)
|
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.
|
Returns a thumbnail of the capture data, for supported image formats.
|
||||||
"""
|
"""
|
||||||
|
global thumbnail_size
|
||||||
# If no thumbnail exists, try and make one
|
# If no thumbnail exists, try and make one
|
||||||
if not self.thumb_bytes:
|
if not self.thumb_bytes:
|
||||||
logging.info("Building thumbnail")
|
logging.info("Building thumbnail")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue