Jump to content
You must now use your email address to sign in [click for more info] ×

Export from Affinity Designer to Figma, how to get more than one pixel?


Recommended Posts

Hey, every time i export an .svg from AD to Figma, it always resizes to shrink the .svg image inside of one pixel.

I'm new to AD and I'm only having this problem in AD. It's like it resizes itself in an export or something. Please check out this loom video of me going through all the steps.

https://www.loom.com/share/90672ad2e6d94c6d9018f4b80aeb4c46

How can I export an .svg from AD that is 45x75px (or whatever) and it show up the same in Figma without me having to completely resize from a single pixel sized .svg? 

Link to comment
Share on other sites

In SVG export settings, click on the more button and uncheck: Set ViewBox.

Leaving the Set ViewBox checked sets the Width and Height to 100% Unchecking it will allow export to specify the Width and height as pixels

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

This is the code for an svg with Set ViewBox Checked
 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 45 75" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
    <g transform="matrix(1,0,0,1,-280.25,-366.627)">
        <g transform="matrix(0.135748,0,0,0.226246,242.207,283.679)">
            <rect x="280.25" y="366.627" width="331.497" height="331.497" style="fill:rgb(255,130,42);"/>
        </g>
    </g>
</svg>

and this is the code for an svg with Set ViewBox unchecked
 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="45px" height="75px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
    <g transform="matrix(1,0,0,1,-280.25,-366.627)">
        <g transform="matrix(0.135748,0,0,0.226246,242.207,283.679)">
            <rect x="280.25" y="366.627" width="331.497" height="331.497" style="fill:rgb(255,130,42);"/>
        </g>
    </g>
</svg>

 

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

2 hours ago, firstdefence said:

Leaving the Set ViewBox checked sets the Width and Height to 100%. Unchecking it will allow export to specify the Width and height as pixels.

Yes that's usually the essentiell part here, namely that width and height are otherwise setup as 100% instead of pixel size values. The viewbox setting itself wouldn't hurt here ...

<svg width="45px" height="75px" viewBox="0 0 45 75" ...

... as far as the width/height settings aren't setup in percentages.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

X, Y, W, H are whole pixels? 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

  • 3 months later...
On 4/25/2019 at 4:54 AM, gstruxture said:

Thanks I got it!!  I had to find the settings in File > Export > SVG > More ....but that still didn't fix my problem in the "export profile" or (using slice)

SO i had to do a little digging in the side menu and i found it...

Pic below of the extra settings there.

image.thumb.png.2da001c3091f5379ba236d786bb494db.png

 

Can you explain exactly how did you export please?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.