Preparing MASK for GIMP

Has anyone tried to make a mask or rather a black and white image for the purpose of a mask for GIMP?
How to do it?

You can copy and paste it into the layer mask, I think.
Or here is a luminosity mask tutorial, you can jump straight to the section where the masks are added based on the the previously created black-and-white versions:

Or did you mean using darktable to create such a BW image, so it can be used as a mask? You’d have to describe what you want the mask to do.

Open the image.
Duplicate layer.
Apply Color>Threshold.

Main point being that the GIMP Threshold gives a pure black and white image.
Adjust threshold sliders as required.
Edit/Invert if necessary.

  1. In dt create bw image and export as e.g. jpg. Of course you should export the same image as normal looking image.
  2. Open these images in GIMP
  3. Use bw version and use channel tab and use command „channel to selection”
  4. Next create mask with option „from selection” as a source of the mask

Indeed my question was - how to create very contrastly bw image still keeping small details like not focused tree branches/leafes?

Here’s a mask per my posted method:

Inverting it would allow image adjustment independently of the highlights.

If you export to tiff you can select the option to save the masks…you will get a layer for each module that used a mask…so you can just use whatever image you want make the mask in say exposure and bump the contrast and you will have a layer with your bw mask…I think that is what the option if for…

In Gimp

6 Likes