Jump to content

Strange SVG import


Recommended Posts

I've tried this in browsers as well as Pixelmator Pro and Boxy-SVG, which have far superior SVG support. They all display it properly. (And come highly recommended for SVG work.) The code is literally just one type of shape repeated...

<path id="a" d="M2.991,0.815A3.1,3.1 0 0 0 2.991,-0.815L4.825,-1.311A5,5 0 0 1 4.825,1.311"/>

with a simple transform to rotate and place it in the correct positions.

<use xlink:href="#a" fill="#fe2712" transform="rotate(30)"/>

The problem, I believe is that Affinity Designer is incompatible with the CSS rotate transform function. Which honestly, is such a basic feature. Although SVGs typically use the matrix transform function, Affinity should've thought of this when designing for SVG compatibility. 

Mozilla says:

Quote

Warning: As per the spec, you should be able to also use CSS transform functions. However, the compatibility isn't guaranteed.

Anyway, I've converted these transforms into matrix transforms, which Affinity supports. 

BYR_color_wheel.svg

Link to comment
Share on other sites

9 hours ago, Lee D said:

I've logged and pass this over to the developers as it imports correctly in Designer on macOS.

Not on OS 11.6.4

I am talking about the first file posted from dfleury2 not the fixed file from Zen22, the files have the same name.

MacBook Pro (13-inch, Mid 2012) Mac OS 10.12.6 || Mac Pro (Late 2013) Mac OS 11.6.7

Affinity Designer 1.10.5 | Affinity Photo 1.10.5 | Affinity Publisher 1.10.5 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

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...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. 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.