Inkscape.org
Beginners' Questions How to Create a Gradient Mask for Transparent Overlays?
  1. #1
    maismith maismith @maismith
    *

    Hi Inkscape Community,

    I'm working on a project where I need to create a transparent overlay with a gradient effect (from fully opaque to fully transparent) on an image. I'm struggling to get the desired result.

    Here’s what I’ve tried so far:

    1. Created a rectangle and applied a gradient to it.
    2. Attempted to use the rectangle as a mask over the image, but the transparency doesn’t seem to apply correctly.

    Could someone guide me on the proper steps to achieve this? I’m looking for a smooth transition and want the transparency to blend seamlessly.

    Thank you in advance for any advice or tips!

    Best regards,
     

    (Link deleted by moderator)

  2. #2
    Polygon Polygon @Polygon🌶

    The gradient needs to go from full flat black (0% opacity( to full flat white (100% opacity) when used as a mask:

  3. #3
    Xav Xav @Xav👹

    The gradient can also go from transparent white (0% opacity) to opaque white (100% opacity). This can sometimes be better than using black as an end stop because it does allow you to see the object behind the mask to some extent, which may help with positioning. Note, however, that it feels rather backwards - the bits you can best see through the mask are the ones that will become most transparent once the mask is applied.

  4. #4
    Xav Xav @Xav👹

    Sorry for the multiple posts. The 'submit reply' button didn't seem to be working, so naturally I hit it again (and again, and...). Unfortunately I don't have permission to delete the dupes.

  5. #5
    Polygon Polygon @Polygon🌶
    Xav

    Unfortunately I don't have permission to delete the dupes.

    Done.

     

    Xav

    The gradient can also go from transparent white (0% opacity) to opaque white (100% opacity).

    Yes - "White" is the important part then.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions How to Create a Gradient Mask for Transparent Overlays?