Jump to content
Sign in to follow this  
Detlev Reiners

SVG Import Bug

Recommended Posts

Hi,

 

there is a problem with the SVG Import belonging to the recognition of (SVG) groups as layers. It seems that <def>...</def> blocks in the SVG-data are misinterpreted.

Attached you'll find two working SVG files for use with Illustrator respectively with CorelDraw. Is there a possibility to fix this issue?

Also the contained symbols are not imported as symbols in Affinity Designer.

 

Regards,

Detlev

corel.svg

illustrator.svg

Share this post


Link to post
Share on other sites

Hi Detlev

 

The layer behaviour in Affinity is slightly different to other apps. Unlike some apps that tend to have an over acrhing layer, In affinity layers are basically groups you can assign a colour code , so they behave in the same manner.

 

I do believe we should read the symbol tags in the SVGs though and import them so I will get this logged.


Serif Europe Ltd - Check the latest news at www.affinity.serif.com

Share this post


Link to post
Share on other sites

Hi Chris,

thanks for your answer and for logging the feature request for the SVG symbols.

My other point is that the group ID in the SVG data is in some cases not used for contained elements within this group. Instead of this a new group is generated taking the symbol id as name for the group. After that this group isn't longer part of its mother but standing alone.
Is it possible that AD remember the mothers group and put the data from the SVG file under this mother to create nested groups in AffinityDesigner? I think in most cases there is a reason in creating nested groups in SVG and it would be nice to obtain this structure.

SVG input
<g id="Groupname">
    <use id="A690" xlink:href="#sy4" .. />
    <use id="A691" xlink:href="#sy4" .. />
    <use id="A692" xlink:href="#sy4" .. />
    <use id="A696" xlink:href="#sy4" .. />
    <use id="A699" xlink:href="#sy4" .. />
</g>

AD Output currently (seen as SVG)
<g id="A690" xlink:href="#sy4" .. />
<g id="A691" xlink:href="#sy4" .. />
<g id="A692" xlink:href="#sy4" .. />
<g id="A696" xlink:href="#sy4" .. />
<g id="A699" xlink:href="#sy4" .. />

desired behaviour for ADs interpretation (seen as SVG)
<g id="Groupname">
    <g id="A690" xlink:href="#sy4" .. />
    <g id="A691" xlink:href="#sy4" .. />
    <g id="A692" xlink:href="#sy4" .. />
    <g id="A696" xlink:href="#sy4" .. />
    <g id="A699" xlink:href="#sy4" .. />
</g>

 

Everytime an ID were found, even a path ID, AD makes an own group layer not take into account the SVG group it is placed in.

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
Sign in to follow this  

×