Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Exporting Asset Size Discrepancy - HELP?

Contributor ,
Nov 29, 2017 Nov 29, 2017

Here is an example of the problem:

Here's my button. It is 214 x 110px...
Screen Shot 2017-11-29 at 10.34.43.pngScreen Shot 2017-11-29 at 10.34.34.png

Until I export as Design asset... and it becomes: 248x128px

Huh?

Screen Shot 2017-11-29 at 10.34.56.png

649
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 29, 2017 Nov 29, 2017

If I draw a simple rectangle to the same size, it exports fine...

Screen Shot 2017-11-29 at 10.44.11.pngScreen Shot 2017-11-29 at 10.44.19.png


The box on the right is the actual (wrong) size being saved out:
Screen Shot 2017-11-29 at 10.47.21.png

I wondered if it was a shadow issue (XD should allow for this in calculating!!!)... but if I put the real size button within the wrong size, the shadow is miles away so it doesn't make sense that it would add on all those extra pixels.

Screen Shot 2017-11-29 at 10.50.28.png

So I took the shadow off as a test, and it saved at correct size.

This is pretty rubbish when you need to export assets for developers.

Screen Shot 2017-11-29 at 10.56.04.png

So what's the work around?

Do I have to turn off the shadows for every single button and then export and take each one into Photoshop at the correct size?

This is not good enough.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 29, 2017 Nov 29, 2017

Hi Pixelysian​, one work-around would be to mask the button with that rectangle (overlap them, bring the rectangle to front, select them both, right click mask with shape).

HTH,

Vlad

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 29, 2017 Nov 29, 2017

Thanks - I'll give that a go - I did wonder that but it's a laborious task with the amount of buttons I have (and they're all symbol assets)!

It's really quite annoying though that XD don't allow for the shadow in the programme... it's misleading and unhelpful.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 29, 2017 Nov 29, 2017
LATEST

Very helpful Vlad - thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines