I'm trying to use an image for masking another SVG. I have a problem that the image has RGB and alpha channel so the masking is using both of the channel.
I've tried this for now:
<mask id="mask-1" maskUnits="userSpaceOnUse" x="0" y="0"
width="1600" height="3200">
<rect x="-92" y="-707.5" width="1600" height="3200"
filter="url(#a)"></rect>
</mask>
<filter id="a">
<feImage out="SourceAlpha" x="-92" y="-707.5" width="1600" height="3200"
xlink:href="image.png"
preserveAspectRatio="none" />
</filter>
But it doesn't give the desired output.
Any help?