Jump to content

Affinity Designer: Inconsistency in the interpretation of SVG files


Recommended Posts

v. 2.2.0.1903 and older.

Hello everyone,

512px-FRANCE24.png.f56beacf8cdcc4c36e5acb96f03bb31f.png

https://fr.wikipedia.org/wiki/Fichier:FRANCE24.svg

This problem concerns the import of SVG files (here from Wikipedia) by Affinity Designer. The software adds black and blue colours that are not present in the original file and make the file structure more complex.

afdesign.thumb.png.699cfa4bf1304c7cf8b7cd906183938b.png

To reproduce this problem:

  1. Download the attached SVG file from Wikipedia.
  2. Open this file with Affinity Designer.
  3. You will see the unexpected black and blue colours and a more complex file structure.

A workaround is to load the file into InkScape, ungroup everything several times and then paste it into Affinity Designer.

6 cœurs, 12 processus - Windows 11 pro - 4K - DirectX 12 - Suite universelle Affinity (Affinity  Publisher, Affinity Designer, Affinity Photo).

Mais je vous le demande, peut-on imaginer une police sans sérifs ?

Link to comment
Share on other sites

Hi @Pyanepsion,

I believe the reason you are not seeing the colours as expected for this particular SVG file is because it's styled using CSS which Affinity Software doesn't currently support...

       <svg id="/media/FRANCE24.svg" data-name="Calque 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 169.3 159.62">
           <defs>
               <style>
                   .cls-1,
                   .cls-2 {
                       fill: #fff;
                   }

                   .cls-2 {
                       fill-rule: evenodd;
                   }

                   .cls-3 {
                       fill: #29b1e6;
                   }
               </style>
           </defs>

The blue shown, i.e., #29B1E6 is actually correct but Affinity Designer isn't picking up the white fill #FFF

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

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...
×
×
  • 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.