Skip to content

Commit

Permalink
increase thumbnail resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamicroservice committed Oct 6, 2023
1 parent a4456db commit 72e7723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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")
Expand Down

0 comments on commit 72e7723

Please sign in to comment.