Updated blob mode from 'c' to 'r' when creating thumbnails to handle uncommitted changes
--- a/src/pyams_file/image.py Wed Oct 24 09:24:14 2018 +0200
+++ b/src/pyams_file/image.py Wed Oct 24 09:25:11 2018 +0200
@@ -74,7 +74,7 @@
else:
return None
# check format
- image = Image.open(self.context.get_blob(mode='c'))
+ image = Image.open(self.context.get_blob(mode='r'))
if not format:
format = image.format
format = format.upper()
@@ -119,7 +119,7 @@
else:
return None
# check format
- image = Image.open(self.context.get_blob(mode='c'))
+ image = Image.open(self.context.get_blob(mode='r'))
if not format:
format = image.format
format = format.upper()