JariH Posted March 27 Share Posted March 27 Hello I could not find any posting related to this. Seeking possible information and advice, where to start digging. Affinity Designer 2 macOS 12.6.3 I need to render svg-files from Blender (V3.4.0) to edit them in vector format in Designer. They refuse to open in Affinity Designer. Mac Quicklook, Adobe and Safari web browser opens them fine. Any advice what to try next, please? I have attached a svg-file here if anybody interested: Test0001.svg Quote Link to comment Share on other sites More sharing options...
joe_l Posted March 27 Share Posted March 27 8 minutes ago, JariH said: Seeking possible information and advice, where to start digging. Remove the following line from the file with a simple editor. Maybe worth a feature request, that AD should ignore this line. <?xml version='1.0' encoding='ascii'?> JariH 1 Quote Link to comment Share on other sites More sharing options...
JariH Posted March 27 Author Share Posted March 27 1 minute ago, joe_l said: Remove the following line from the file with a simple editor. <?xml version='1.0' encoding='ascii'?> Thank you. That did the trick. joe_l 1 Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 I'm pretty sure that it's the "ascii" encoding that is the problem, rather than the whole line. An alternative to the advice above would be to see if you can tell Blender to use a different encoding, such as “UTF-8”, when creating the exported SVG. That way you shouldn’t need the extra editing step. joe_l 1 Quote Link to comment Share on other sites More sharing options...
joe_l Posted March 27 Share Posted March 27 1 minute ago, GarryP said: I'm pretty sure that it's the "ascii" encoding that is the problem, rather than the whole line. Yes, this is correct. Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 Thanks for confirming that. I think I might have come up with the same problem when I was creating some SVG code procedurally a while back but couldn’t remember if I had remembered it correctly. Quote Link to comment Share on other sites More sharing options...
JariH Posted March 27 Author Share Posted March 27 Thanks joe_l & GarryP. I don't know how to change svg encoding when rendering from Blender. Editing xml is quick and dirty way. I can live with, it's just a few files. Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 This thread has some more information: https://forum.affinity.serif.com/index.php?/topic/132634-svg-file-not-supported/ We are told that the issue has been logged with the developers. JariH 1 Quote Link to comment Share on other sites More sharing options...
v_kyr Posted March 27 Share Posted March 27 The Blender folks should be aware of that ... https://devtalk.blender.org/t/freestyle-svg-encoding/11868 GarryP and JariH 1 1 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.1.2 ◆ iPad OS 17.1.2 Link to comment Share on other sites More sharing options...
Andreas CH Posted March 27 Share Posted March 27 Da der Eintrag nicht stimmt, habe ich ihn wieder gelöscht. Since the entry is not correct, I have deleted it again. Quote Link to comment Share on other sites More sharing options...
JariH Posted March 27 Author Share Posted March 27 11 minutes ago, Andreas CH said: ... Another observation. The Test0001.svg can be opened with the Publisher. And this is how you bring it into the designer. Place Test0001.svg in Publisher Click on "Edit document" Select all (Ctrl+A) Copy (Ctrl+C) In the Designer "New from Clipboard" Sorry, unable open or import into Publisher either (V2.0.4). Quote Link to comment Share on other sites More sharing options...
Andreas CH Posted March 27 Share Posted March 27 Ups, sorry Da habe ich die konvertierte Datei erwischt. Du kannst Test0001.svg mit InkScape öffnen und unter neuem Namen speichern. Nun lässt sich die Datei im Designer öffnen. I got the converted file. You can open Test0001.svg with InkScape and save it under a new name. Now you can open the file in Designer. Quote Link to comment Share on other sites More sharing options...
v_kyr Posted March 27 Share Posted March 27 6 hours ago, JariH said: I don't know how to change svg encoding when rendering from Blender. Editing xml is quick and dirty way. I can live with, it's just a few files. Yes, that's pretty trivial to fix! Opening your Blender generated "Test0001.svg" file inside some text editor. In the first line of the SVG XML code one can see ... Quote <?xml version='1.0' encoding='ascii'?> ... ... replacing the 'ascii' with 'UTF-8' ... Quote <?xml version='1.0' encoding='UTF-8'?> ... After that little change inside a text editor, saving the file and opening it again in ADe, APh or Apub. - It should now load and showup without any problems! JariH 1 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.1.2 ◆ iPad OS 17.1.2 Link to comment Share on other sites More sharing options...
JariH Posted March 27 Author Share Posted March 27 28 minutes ago, v_kyr said: Yes, that's pretty trivial to fix! Opening your Blender generated "Test0001.svg" file inside some text editor. In the first line of the SVG XML code one can see ... ... replacing the 'ascii' with 'UTF-8' ... After that little change inside a text editor, saving the file and opening it again in ADe, APh or Apub. - It should now load and showup without any problems! Thanks. I use the text edit trick. I meant, I don't know if it is possible to tell Blender to encode UTF-8. This seems to be a problem in "Freestyle SVG Export" Add-on v_kyr 1 Quote 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.