flameshot-org/flameshot

Contrasting text outline, shadow or border

Open

#1,249 opened on Jan 21, 2021

View on GitHub
 (21 comments) (12 reactions) (0 assignees)C++ (1,916 forks)batch import
EnhancementGood first issue

Repository metrics

Stars
 (29,897 stars)
PR merge metrics
 (Avg merge 2d 23h) (12 merged PRs in 30d)

Description

It's very important for me for the text to be clearly visible when added to a screenshot. This is usually easily achieved by using black text with white background or white text with black background - but other colours usually look good with either (except maybe for very dark and very light colours). I know that usually the implementations involve:

  • Creating a shadow
  • Creating a border

I do realise I can put a rectangle under text, but it's ugly and obscures a lot more of the image.

As a humorous reference: :smile: white text with black outline can be read on any color

Contributor guide