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

Cannot drag & drop an SVG onto the canvas


Recommended Posts

The Affinity SVG parser doesn't know howto parse and interpret that image ...

<svg width="373" height="403" viewBox="0 0 373 403" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="373" height="403" fill="white"/>
<path d="M61 326.5H311V76.5H61V326.5Z" fill="url(#pattern0)"/>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0" transform="scale(0.015625)"/>
</pattern>
<image id="image0" width="64" height="64" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAXpElEQVR4AeWaBXQcN9/1f5IGls2xHWZq06d983Dbh5mZPmZ6mZmZmZmZmcvM3LAbsGNae2FQ0jfxzn6esycupPDRPeceabTZzd6r+9dIs+b/Z1hwhOX/
                                                      ...
                                                      ...
                                                      ... 
                                                     TLQBfBEskHsX3IDCiYU0hBZr3pu1vvwwpz+D3FoXqfQ1VLJ4pcEjtcrCyFziksExMAzUWNz9mKf5oeaMBCkRhnly/uGx5zf2ro5+XVgHqDmhhKgKP6VMGCwJOgbEVvXX1zxXjM3Kz4TdtI3JAn7hDF119E4LiglcBRIWSwBMBa07jFNLHEqAZUo1x5zS86Dk5P81sRYfDOwClCSiQDEoPBX2oA+LvtlgtQbWum4B5aW1Y2dVvo6k6TbrBHD2si6tqIirPUAYYVIpLBdR5q2EDSFo2b9qnv/+Eh683A9eQSYJ0fVi4v/F/32FTDgykqjiEg7Na2pRalbiVPVwJpy/jgocpRplZ24rRQd5YjW4PsdEglw5cJfGQMGjeCKYyoQWAa3sZaXGMKCA6S8nPhlBFcGy8uM/wmoDtuodrLoIAAAAABJRU5ErkJggg=="/>
</defs>
</svg>

... it can only deal with a subset of SVG commands, so to say the most common ones.

☛ 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

2 minutes ago, v_kyr said:

The Affinity SVG parser doesn't know howto parse and interpret that image ...


<svg width="373" height="403" viewBox="0 0 373 403" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="373" height="403" fill="white"/>
<path d="M61 326.5H311V76.5H61V326.5Z" fill="url(#pattern0)"/>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0" transform="scale(0.015625)"/>
</pattern>
<image id="image0" width="64" height="64" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAXpElEQVR4AeWaBXQcN9/1f5IGls2xHWZq06d983Dbh5mZPmZ6mZmZmZmZmcvM3LAbsGNae2FQ0jfxzn6esycupPDRPeceabTZzd6r+9dIs+b/Z1hwhOX/
                                                      ...
                                                      ...
                                                      ... 
                                                     TLQBfBEskHsX3IDCiYU0hBZr3pu1vvwwpz+D3FoXqfQ1VLJ4pcEjtcrCyFziksExMAzUWNz9mKf5oeaMBCkRhnly/uGx5zf2ro5+XVgHqDmhhKgKP6VMGCwJOgbEVvXX1zxXjM3Kz4TdtI3JAn7hDF119E4LiglcBRIWSwBMBa07jFNLHEqAZUo1x5zS86Dk5P81sRYfDOwClCSiQDEoPBX2oA+LvtlgtQbWum4B5aW1Y2dVvo6k6TbrBHD2si6tqIirPUAYYVIpLBdR5q2EDSFo2b9qnv/+Eh683A9eQSYJ0fVi4v/F/32FTDgykqjiEg7Na2pRalbiVPVwJpy/jgocpRplZ24rRQd5YjW4PsdEglw5cJfGQMGjeCKYyoQWAa3sZaXGMKCA6S8nPhlBFcGy8uM/wmoDtuodrLoIAAAAABJRU5ErkJggg=="/>
</defs>
</svg>

... it can only deal with a subset of SVG commands, so to say the most common ones.

Thanks for your response!

This SVG was generated by F##ma app and it can be easily imported into I#k app in macOS. So should be a valid SVG in general.

Link to comment
Share on other sites

Well since every common webbrowser can open and show that up, it will be valid SVG code. But as said before, the Affinity build-in SVG engine doesn't yet handle the full SVG standard, thus has limitations.

☛ 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

  • 2 weeks later...

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.