Jump to content
Jens2

Designer corrupts empty and single element groups of imported SVG

Recommended Posts

When opening an SVG file, Affinity Designer will create layers from groups in an unexpected/buggy way.

For example, opening the attached test.svg file, which looks like this:

<?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="256px" height="256px" 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 id="three">
        <circle cx="192" cy="64" r="8"/>
        <circle cx="192" cy="96" r="8"/>
        <circle cx="192" cy="128" r="8"/>
    </g>
    <g id="two">
        <circle cx="128" cy="64" r="8"/>
        <circle cx="128" cy="96" r="8"/>
    </g>
    <g id="one">
        <circle cx="64" cy="64" r="8"/>
    </g>
    <g id="zero">
    </g>
</svg>

in Affinity Designer 1.6.1 will not result in an empty layer called "zero", a single element layer called "one", a two element layer called "two", etc.

Instead, this is the result:

image.png.04780652eaf7b58d755461c1db393672.png

That is, the "zero"- and "one"-groups were ignored, and instead we got a single free ellipse with a name taken from the ignored "one"-group's id ...

The groups with id "two" and "three" were imported as expected though.

This inconsistency makes working with SVG files in Affinity Designer frustrating. 

I'd like to be able to export as SVG, reopen that SVG and export SVG again, without losing or messing up basic structure like groups and ids ...

 

 

 

test.svg

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

×