Advertisement


Sketch exports Alpha Mask different to a PDF than to a PNG?


Question

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:

enter image description here

I now also wanted to export it to PDF, but now the image suddenly also fades at the top:

enter image description here

Does anybody know why this is, and does anybody know how I can export this to PDF correctly? All tips are welcome!

2016/07/05
1
2
7/5/2016 1:23:00 PM

Accepted Answer

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.

2016/07/05
3
7/5/2016 1:49:00 PM