Create transparent image mask from black and white (monochrome) alpha mask using GIMP

You got an image to be used as mask for another image. (Mask is like a black and white image, when combined with other images, white area will be retained, black area will be erased, grey area will have less transparency).

Suppose our image is like this

Input image

For masking sometimes you require a transparent area instead of the black area, like this.

transparent mask image

I used several tools, like image magick and other online tools. I only got a better result and easy to use using the GIMP editor.

Here’s the steps;

  1. Load the image into gimp.
  2. Use shortcut Ctrl + C to copy the layer
  3. Add a layer mask from Layer menu
  4. Select White as Full opacity (default option)
  5. Now Paste the copied layer (CTRL + V)
  6. Result looks like this
  7. Anchor the layer from layer menu to remove floating selection.
  8. Result is opposite of what we expect. To invert the result, we will invert the mask colors.
  9. Select the mask layer
  10. Choose Colors -> Invert and you will get the result.

Here’s the final result.

Thanks for reading.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *