Skip to content

Commit ef279c2

Browse files
committed
added fill option value to masked image
1 parent f1b739e commit ef279c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def download_image_mask():
370370
except (ValueError, TypeError) as e:
371371
raise ValueError(f"Invalid format in region dimensions: {region}, Error: {e}")
372372
# Draw ellipse (circle if rw and rh are equal)
373-
draw.ellipse([rx, ry, rx + rw, ry + rh], outline=color, width=3)
373+
draw.ellipse([rx, ry, rx + rw, ry + rh], outline=color, width=3, fill=color)
374374

375375
mask_byte_arr = BytesIO()
376376
mask.save(mask_byte_arr, format='PNG')

0 commit comments

Comments
 (0)