From 72e77232d1ecc85c16a21c09ede7255a8be5bea9 Mon Sep 17 00:00:00 2001 From: Vinu Date: Fri, 6 Oct 2023 16:03:40 +0000 Subject: [PATCH] increase thumbnail resolution --- function_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/function_app.py b/function_app.py index a20c6e6..8fe707f 100644 --- a/function_app.py +++ b/function_app.py @@ -18,7 +18,7 @@ path=TARGET_CONTAINER_DETAIL_VIEWS + "/{name}", connection=CONNECTION) def compress_image_for_detail_view(inputblob: func.InputStream, outputblob: func.Out[str]): - logging.info(f"Compressing '{inputblob.name}' to LOW") + logging.info(f"Compressing '{inputblob.name}' for detail view") compressed_image = compression.compress(inputblob, 500) outputblob.set(compressed_image) @@ -29,8 +29,8 @@ def compress_image_for_detail_view(inputblob: func.InputStream, outputblob: func path=TARGET_CONTAINER_THUMBNAILS + "/{name}", connection=CONNECTION) def compress_image_for_thumbnail(inputblob: func.InputStream, outputblob: func.Out[str]): - logging.info(f"Compressing '{inputblob.name}' to ULTRA LOW") - compressed_image = compression.compress(inputblob, 100) + logging.info(f"Compressing '{inputblob.name}' for thumbnail") + compressed_image = compression.compress(inputblob, 200) outputblob.set(compressed_image) @app.event_grid_trigger(arg_name="azeventgrid")