Inkscape.org
Beginners' Questions Gradient transparency not working
  1. #1
    Sergedt Sergedt @Sergedt

    Good afternoon,

    I am a new Inkscape user (but used very often before CorelDraw and Corel PhotoPaint)

    I just switched Inkscape.

    I try to apply transparency on a part of a bitmap (jpg file)  image.

    I import that image. I draw a rectangle (black) on that image and fill with a gradient.

    I can modify that gradient, and I see the image below.

    I than select both (image + rectangle) and apply the mask (Object, Mask, Set Mask).

    Both become ... white and I don't see the image anymore (with "set Mask" or "set inverse Mask")

    I did the same operation with a colored circle, a black rectangle above.

    I have to select "Mask", "set inverse Mask" (why "inverse", I don't know" and I get the good result.

    If I choose "set Mask", the result is also totally white.

    Do you have any suggestion or solution.

    I suppose the solution is something stupid, but I don't find the solution (I tried to find a solution on Internet)

    Thank you already

    Serge

     

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Maybe this:

    Ensure the gradient uses opaque grayscale.

  3. #3
    Sergedt Sergedt @Sergedt
    👍

    Hello Tyler,

    Thabk you for your tutorial (that I already saw when I was trying.to understand what was wrong)

    I think I found the solution (or the cause)

    On the "mask object", I have to change the value of the color on the color wheel

    I have HSL color, and "L" put 100% on L and" A". (I attach a printscreen)

    If I don't do that, the result is a totally blank image.

    But I could continue further in the project with the (bad or good) solution I tried.

    Thank you

    Serge

    Inkscape   Gradient Color Wheel
  4. #4
    Offlabelbotanist Offlabelbotanist @Offlabelbotanist

    I have done Serge's solution and I get the same result, whited-out image

  5. #5
    Polygon Polygon @Polygon🌶
    *

    Masks based on white and black color value and anything in between to manage transparency (White=100 Opacity/black=0 Opacity)- so don´t use any lower opacity then 100 in your gradient. And you need PNG as your export file format as JPG don´t support alpha channel.

  6. #6
    Offlabelbotanist Offlabelbotanist @Offlabelbotanist

    Now the image I want to have gradient opacity shows up in white against the square with the gradient.

     

    Pine 2
  7. #7
    Polygon Polygon @Polygon🌶

    Is your picture inverted on purpose? If that´s what you want?

     

  8. #8
    Offlabelbotanist Offlabelbotanist @Offlabelbotanist

    No, I would like for it to look like how you have it on the Right

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Gradient transparency not working