darktable-org / darktable-org/darktable

Framing module : adding a feather option ?

Open
#20,077 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature: new no-issue-activity scope: image processing
Dominant language
C
Stars
13.1k
Forks
1.4k
Avg merge
22h 14m
Merged PRs (30d)
198

Description

Is your feature request related to a problem? Please describe.
The framing module is very useful, but it would be very nice to have a feather option that would allow gradient borders like the one shown on the picture below.

Describe the solution you'd like
A "feather %" slider could be added under the "border size %" slider.
By default it would be 0.
But if non nul, it would add an inner gradient on the border of the picture, using the "border color".
The gradient would range from [border color / alpha 1.0] to [border color / alpha 0.0] = transparent.

Note that the classic opaque border added around the picture will remain identical. The gradient border will be added inside this existing opaque border.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the framing module and the existing border size, border color, and slider controls. Trace how the module renders its opaque border, then determine where an optional inner alpha gradient would fit. Done means a default-zero feather setting preserves existing output and nonzero values produce the requested border-color-to-transparent gradient.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.