From 32ec2b463dd3db8f16df74f11b7a0524c446aec9 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 28 Oct 2020 15:41:06 +0000 Subject: [PATCH] Fixed thumbnail data fallback --- openflexure_microscope/captures/capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/captures/capture.py b/openflexure_microscope/captures/capture.py index ecee9462..5c840454 100644 --- a/openflexure_microscope/captures/capture.py +++ b/openflexure_microscope/captures/capture.py @@ -348,7 +348,7 @@ class CaptureObject(object): if thumbnail: return io.BytesIO(thumbnail) # If no thumbnail exists, serve the full image - return self.data.getvalue() + return self.data def save(self) -> None: """Write stream to file, and save/update metadata file"""