From ef279c2316f21851af0a668e93b3862df5dfb0b4 Mon Sep 17 00:00:00 2001 From: sumn2u Date: Sat, 8 Jun 2024 21:45:47 -0500 Subject: [PATCH] added fill option value to masked image --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 1de9e8b..5ac1e0c 100644 --- a/server/app.py +++ b/server/app.py @@ -370,7 +370,7 @@ def download_image_mask(): except (ValueError, TypeError) as e: raise ValueError(f"Invalid format in region dimensions: {region}, Error: {e}") # Draw ellipse (circle if rw and rh are equal) - draw.ellipse([rx, ry, rx + rw, ry + rh], outline=color, width=3) + draw.ellipse([rx, ry, rx + rw, ry + rh], outline=color, width=3, fill=color) mask_byte_arr = BytesIO() mask.save(mask_byte_arr, format='PNG')