Skip to main content
Participant
Nov 26, 2020 11:29 PM UTC
Answered

Unwanted padding in PNG export if shadows applied

Hi everybody! 

 

I have a problem with XD. When I export some SVG elements in my mockup, if I put any kind of shadow on the components of the path, when I export in PNG (for Android) I get an annoying and useless padding in the PNG file. Even if I set the shadows' directions to the inside of the shape. 

 

This is without shadows:

 

This is with shadows: 

 

So: is there a way to export PNG with shadows but without that unwanted padding? 

 

Thank you in advance for the support! 

This topic is closed to new replies. Start a new post to keep the conversation going.
fbafkisCorrect answer
Participant
Nov 27, 2020 7:29 PM UTC

I used Photoshop's refine command with batch automation. 

 

Thank you anyway for the suggestion! 

2 replies

fbafkisAuthorCorrect answer
Participant
Nov 27, 2020 7:29 PM UTC

I used Photoshop's refine command with batch automation. 

 

Thank you anyway for the suggestion! 

Translate
Kenneth Kawamoto
Community Expert
Community Expert
Nov 27, 2020 10:37 AM UTC

One way is to mask them.

Translate