Tested on: GIMP 2.10, 3.0
Draws a line along the selection border — useful for highlighting an area on a screenshot.
Select an area with a selection tool: Rectangle Select (R), Ellipse Select (E) or Free Select (F).
Add a new layer so the stroke can be moved or deleted later: Layer > New Layer → Fill with: Transparency.
Choose the color: click the foreground color in the toolbox. The stroke uses the foreground color.
Edit > Stroke Selection… → Stroke line → set Line width (e.g. 4 px) → Stroke.
Remove the selection: Select > None (Shift+Ctrl+A).
Stroke Selection is available only when the image has an active selection.
Step 1: Selected area on a screenshot
Step 2: Edit > Stroke Selection
Step 3: Stroke Selection dialog.
Passwords, tokens, IP addresses and names should be covered before publishing.
Select the area with Rectangle Select (R).
Edit > Fill with FG Color (Ctrl+,) — covers the area with a solid color.
Select > None (Shift+Ctrl+A).
Use a solid fill, not blur or pixelize: blurred text can sometimes be restored.
Crop: Crop tool (Shift+C) → drag over the area → Enter.
Resize: Image > Scale Image → set the width; the height follows if the chain icon is linked.