diff --git a/compression.py b/compression.py index aa8715e..0bab0d9 100644 --- a/compression.py +++ b/compression.py @@ -4,6 +4,8 @@ def compress(inputblob: func.InputStream, resolution: int) -> bytes: image = Image.open(inputblob) + + # Set max height and width max_size = (resolution, resolution) # Create a thumbnail. This method modifies the image to contain