HumanSignal / HumanSignal/label-studio

strokeWidth=1 on masks?

Open
#6,223 8 comments 0 reactions 0 assignees View on GitHub
community:bug community:reviewed
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Is your feature request related to a problem? Please describe.**
I'm trying to do pixel-level annotations. However, the smallest brush size seems to be too big. ![example](https://github.com/user-attachments/assets/60a71fb3-cf90-41e9-abe4-64de02c47959)

**Describe the solution you'd like**
Smallest brush size is pixel-level.

**Describe alternatives you've considered**
I've tried setting `strokeWidth=1` in the corresponding `Label` tag (shown above) but this doesn't seem to fix. It looks like the width is double the width of a pixel, but it's ambiguous because of the rounded corners. Would like to get more clarification on this.

Setting `strokeWidth=0.5` also doesn't seem to work (see image below). I had to click 4 times to get this result, which makes me think the brush width is half a pixel, but again, unsure because of the rounded corners.
![image](https://github.com/user-attachments/assets/bf18624b-a157-4c58-9327-43f9e3ce7833)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.