Increase preview size till 256, 256.

Previous preview size was not optimal and led to a blurred image
due to too small size.
main
Nikita Manovich 6 years ago
parent 16afc698a8
commit 87784fa97e

@ -52,11 +52,12 @@ class IMediaReader(ABC):
@staticmethod
def _get_preview(obj):
PREVIEW_SIZE = (256, 256)
if isinstance(obj, io.IOBase):
preview = Image.open(obj)
else:
preview = obj
preview.thumbnail((128, 128))
preview.thumbnail(PREVIEW_SIZE)
return preview.convert('RGB')

Loading…
Cancel
Save