Skip to main content
Participant
Feb 8, 2022 2:22 PM UTC
Answered

Export issue in Adobe XD: Height and width seem to be incorrect

Hi, I just started using Adobe XD but I got a problem exporting my background image from adobe XD to android studio. The problem is that the everything is ok until I export it and then the image has not the correct size/ratio (it has some white bars on the sides even if in the app everything was in the correct ratio and size).

I'd be glad to get some help!

Thanks

{Renamed By MOD}

 

    This topic is closed to new replies. Start a new post to keep the conversation going.
    AkinGn
    AkinGnCorrect answer
    Community Expert
    Feb 8, 2022 3:58 PM UTC

    Hmm I see, I've experinced that issue before, there must be some invisible-ish element that's increasing the size, my solution is masking the group to have the size I want (create a rectangle/shape that has the exact size you need > then select both the shape and the group you want to mask > right click > Mask with shape. That's how I resolve similar situations, hope helps!

    5 replies

    AkinGn
    Community Expert
    Community Expert
    Feb 8, 2022 2:49 PM UTC

    Hi @Meyer230578482d69 can you please make sure you follow these steps and update me since I'm curious about this issue: 1- Select the shape/image you want to export 2- By selecting File > Export > Selected export the shape/image. It should export the exact element that is selected as seen on XD (make sure your shape/image is not grouped by any other shape/element etc) Hope this helps!

    Translate
    Participant
    Feb 8, 2022 3:09 PM UTC

    I simply group the elements I need for the background and then export the group.

    Translate
    AkinGn
    Community Expert
    AkinGnCommunity ExpertCorrect answer
    Community Expert
    Feb 8, 2022 3:58 PM UTC

    Hmm I see, I've experinced that issue before, there must be some invisible-ish element that's increasing the size, my solution is masking the group to have the size I want (create a rectangle/shape that has the exact size you need > then select both the shape and the group you want to mask > right click > Mask with shape. That's how I resolve similar situations, hope helps!

    Translate