JariH Posted March 27, 2023 Posted March 27, 2023 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
joe_l Posted March 27, 2023 Posted March 27, 2023 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 ---------- Windows 10 / 11, Complete Suite Retail and Beta
JariH Posted March 27, 2023 Author Posted March 27, 2023 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
GarryP Posted March 27, 2023 Posted March 27, 2023 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
joe_l Posted March 27, 2023 Posted March 27, 2023 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 ---------- Windows 10 / 11, Complete Suite Retail and Beta
GarryP Posted March 27, 2023 Posted March 27, 2023 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
JariH Posted March 27, 2023 Author Posted March 27, 2023 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
GarryP Posted March 27, 2023 Posted March 27, 2023 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
v_kyr Posted March 27, 2023 Posted March 27, 2023 The Blender folks should be aware of that ... https://devtalk.blender.org/t/freestyle-svg-encoding/11868 JariH and GarryP 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.2 ◆ iPad OS 17.2
Andreas CH Posted March 27, 2023 Posted March 27, 2023 Da der Eintrag nicht stimmt, habe ich ihn wieder gelöscht. Since the entry is not correct, I have deleted it again. Quote
JariH Posted March 27, 2023 Author Posted March 27, 2023 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
Andreas CH Posted March 27, 2023 Posted March 27, 2023 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
v_kyr Posted March 27, 2023 Posted March 27, 2023 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.2 ◆ iPad OS 17.2
JariH Posted March 27, 2023 Author Posted March 27, 2023 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
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.