deafmicky Posted August 8, 2019 Share Posted August 8, 2019 Hi, I'm trying to import SVG file, unfortunately showing image error. With other programs (Inkscape, macSVG, Adobe Illustrator and others) shows correct representation, only Affinity family does not. Is this bug? As an example, you can get SVG from Wikipedia and look. https://upload.wikimedia.org/wikipedia/commons/c/cd/Coat_of_arms_of_Hesse.svg?download Quote Link to comment Share on other sites More sharing options...
deafmicky Posted August 8, 2019 Author Share Posted August 8, 2019 Half solved if i SVG convert to PDF (from Mac App Store) and open PDF with Affinity Family and it's correct. But can't direct from Affinity. Quote Link to comment Share on other sites More sharing options...
Joachim_L Posted August 8, 2019 Share Posted August 8, 2019 Opens fine in ANY Affinity product. What image error is shown? Screenshot? With which Affinity software did you try to open? Windows? Mac? ipad? Quote ------ Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed Link to comment Share on other sites More sharing options...
deafmicky Posted August 8, 2019 Author Share Posted August 8, 2019 (edited) 18 minutes ago, Joachim_L said: Opens fine in ANY Affinity product. What image error is shown? Screenshot? With which Affinity software did you try to open? Windows? Mac? ipad? See Image. I use with macOS Mojave but other my old iMac with macOS Sierra, same problems Edited August 8, 2019 by deafmicky Quote Link to comment Share on other sites More sharing options...
Palatino Posted August 8, 2019 Share Posted August 8, 2019 There are also display errors in Boxy SVG. Quote Thanks to DeepL. Link to comment Share on other sites More sharing options...
Palatino Posted August 8, 2019 Share Posted August 8, 2019 I have drawn such coats of arms many years professionally first by hand and then with graphic programs. Therefore I may say that the file has a very bad structure. Quote Thanks to DeepL. Link to comment Share on other sites More sharing options...
deafmicky Posted August 8, 2019 Author Share Posted August 8, 2019 2 minutes ago, Palatino said: There are also display errors in Boxy SVG. But other Application no problem. You can try SVG convert from Mac App Store and you see image is correct. Quote Link to comment Share on other sites More sharing options...
Joachim_L Posted August 8, 2019 Share Posted August 8, 2019 25 minutes ago, Palatino said: Therefore I may say that the file has a very bad structure. Has it? But why do most editors do not stumble upon the bad structure? So I would claim this a bug. Quote ------ Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed Link to comment Share on other sites More sharing options...
Palatino Posted August 8, 2019 Share Posted August 8, 2019 6 minutes ago, Joachim_L said: Has it? But why do most editors do not stumble upon the bad structure? So I would claim this a bug. Then ask machines in the graphics industry. The file structure is extremely error-prone. As you can see. Quote Thanks to DeepL. Link to comment Share on other sites More sharing options...
v_kyr Posted August 8, 2019 Share Posted August 8, 2019 That SVG drawing uses a SVG <pattern> element ... <?xml version="1.0"?> <svg viewBox="-1 -1 430 518" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <pattern id="a" height="76.78" patternTransform="translate(10 151.5)" patternUnits="userSpaceOnUse" width="360"> <path d="m.01 0h359.99l-.01 38.39h-359.99z" fill="#e10000"/> <path d="m.01 38.39h359.99l-.01 38.39h-359.99z" fill="#fff"/> </pattern> ... ... ... and the Affinity SVG parser has no clue about patterns, meaning doesn't support those SVG elements. Thus it can't show up that SVG drawing correctly, which you can also see from the layers panel, there is no layer with ID "a" (<pattern id="a" ...) shown, it doesn't recognize and omits this during parsing. Quote ☛ 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 More sharing options...
R C-R Posted August 8, 2019 Share Posted August 8, 2019 7 hours ago, v_kyr said: That SVG drawing uses a SVG <pattern> element ... From near the end of that linked page: I have no idea what that means, but from other links apparently there is a potential issue with something sometimes being undefined that may have something to do with its deprecated status. Perhaps the forum's SVG gurus can explain more about that. Quote All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
v_kyr Posted August 9, 2019 Share Posted August 9, 2019 That‘s just for the „xlink:href“ attribut of pattern elements... Quote xlink:href Deprecated since SVG 2 This attribute reference a template pattern that provides default values for the <pattern> attributes.Value type: <URL>; Default value: none; Animatable: yes Note: For browsers implementing href, if both href and xlink:href are set, xlink:href will be ignored and only href will be used. ...and is replaced by href since SVG2 (see here). So that doesn't play any role at all in this threads error contents, the point is more, that Affinity's SVG parser doesn't take <pattern> elements into account at all. Quote ☛ 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 More sharing options...
Recommended Posts
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.