Skip to content

Commit

Permalink
added fill option value to masked image
Browse files Browse the repository at this point in the history
  • Loading branch information
sumn2u committed Jun 9, 2024
1 parent f1b739e commit ef279c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ef279c2

Please sign in to comment.