Sketch exports Alpha Mask different to a PDF than to a PNG?
I'm using Sketch to make a fade out effect in an image using a gradient alpha mask as described at the bottom of this page. In Sketch it looks like I want it to, and now I want to export it both to a PNG and a PDF. Exporting to PNG works fine:
I now also wanted to export it to PDF, but now the image suddenly also fades at the top:
Does anybody know why this is, and does anybody know how I can export this to PDF correctly? All tips are welcome!
Transparent gradients are not supported in PDF. There is no neat solution to this problem, what you could try and do is flatten the gradients to bitmaps before exporting.
To do this, go to Layer > Flatten selection to bitmap.