[preview] Cleanup code

This commit is contained in:
Daniel Brötzmann
2019-06-01 22:12:52 +02:00
committed by Philipp Hörist
parent 1a69014952
commit e73114c01e
5 changed files with 127 additions and 169 deletions

View File

@@ -17,11 +17,11 @@ def resize_gif(mem, path, resize_to):
def analyse_image(mem):
"""
'''
Pre-process pass over the image to determine the mode (full or additive).
Necessary as assessing single frames isn't reliable. Need to know the mode
before processing all frames.
"""
'''
image = Image.open(BytesIO(mem))
results = {
'size': image.size,