Skip to main content
Participant
November 26, 2020
Answered

Unwanted padding in PNG export if shadows applied

  • November 26, 2020
  • 2 replies
  • 1245 views

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 has been closed for replies.
Correct answer fbafkis

I used Photoshop's refine command with batch automation. 

 

Thank you anyway for the suggestion! 

2 replies

fbafkisAuthorCorrect answer
Participant
November 27, 2020

I used Photoshop's refine command with batch automation. 

 

Thank you anyway for the suggestion! 

Community Expert
November 27, 2020

One way is to mask them.