Jump to content
gstruxture

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? 

Share this post


Link to post
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" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
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" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo & Publisher - Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-22E, - iPad Pro 12.9 B|  

Affinity Help - Affinity Desktop Tutorials - FeedbackInstagram & Flickr

Share this post


Link to post
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.7.1 ◆ Affinity Photo 1.7.1 ◆ OSX El Capitan

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

X, Y, W, H are whole pixels? 


Affinity Store: Designer 1.7.3.481, Photo 1.7.3.481, Publisher 1.7.3.481.
Windows 10 Pro, Version 1903, Build 18362.418.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080.
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | 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.