jrhager84 Posted March 10, 2023 Posted March 10, 2023 I have an svg that's exported from designer 2, and the paths are all 'nan' (not-a-number). I'm *really* hoping I didn't just spend an hour hacking my way with the bezier tool to get nothing. Here is the file that was output: Not sure how to proceed. Please advise. usa.svg Quote
GarryP Posted March 10, 2023 Posted March 10, 2023 It would help us to figure out what has happened if you also supply the original Affinity document so we can see what you started with before the export, rather than just what you ended up with after the export. Quote
David in Яuislip Posted March 10, 2023 Posted March 10, 2023 Looks like your document dpi is set to zero. DPI 300 always matches the viewbox with the canvas, other resolutions go a bit weird so for a laugh I tried zero DPI 300 <svg width="100%" height="100%" viewBox="0 0 800 600" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <rect id="dpi300" x="38" y="90" width="311" height="252" style="fill:#d1ff6b;stroke:#f00;stroke-width:2px;"/> DPI 72 <svg width="100%" height="100%" viewBox="0 0 3334 2500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <rect id="dpi72" x="158.333" y="375" width="1295.83" height="1050" style="fill:#d1ff6b;stroke:#f00;stroke-width:8.33px;"/> DPI 1 <svg width="100%" height="100%" viewBox="0 0 240000 180000" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <rect id="dpi1" x="11400" y="27000" width="93300" height="75600" style="fill:#d1ff6b;stroke:#f00;stroke-width:600px;"/> DPI 0 <svg width="100%" height="100%" viewBox="0 0 -2147483648 -2147483648" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <path id="dpi1" d="M-nan(ind),-nan(ind)c-nan(ind),-nan(ind) -nan(ind),-nan(ind) -nan(ind),-nan(ind)c-nan(ind),-nan(ind) -nan(ind),-nan(ind) -nan(ind),-nan(ind)c-nan(ind),-nan(ind) -nan(ind),-nan(ind) -nan(ind),-nan(ind)c-nan(ind),-nan(ind) -nan(ind),-nan(ind) -nan(ind),-nan(ind)Z" style="fill:#d1ff6b;"/> debraspicher 1 Quote Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10
jrhager84 Posted March 10, 2023 Author Posted March 10, 2023 Another thing I've noticed: When I look at the stroke properties on these paths, the slider is maxed and the input just says 'pt' Every time I try to adjust it, it just shows the number and when I let go it maxes out again and shows pt. Quote
v_kyr Posted March 11, 2023 Posted March 11, 2023 1 hour ago, jrhager84 said: When I look at the stroke properties on these paths, the slider ... Your screenshot indicates too that there is no selected stroke there, namely nothing (x) as a stroke (aka stroke is None), so no strokes have been applied at all! - Also looking at the text field beside the width slider, which shows up NO numerical value (even not a "0"), seems to be odd! For me it looks like there haven't been applied any stroke numerical value setting to selected paths or shapes there at all when generating the SVG, the shown SVG output mess, with only nan's, indicates the same here.- I think something doesn't work the right way for your ADe2 installment! You may retry by quitting/restarting ADe and creating a new doc in order to see if it behaves the same odd way then or not, if it still behaves odd then try to remove and reinstall ADe2. 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
jrhager84 Posted March 11, 2023 Author Posted March 11, 2023 2 hours ago, v_kyr said: Your screenshot indicates too that there is no selected stroke there, namely nothing (x) as a stroke (aka stroke is None), so no strokes have been applied at all! - Also looking at the text field beside the width slider, which shows up NO numerical value (even not a "0"), seems to be odd! For me it looks like there haven't been applied any stroke numerical value setting to selected paths or shapes there at all when generating the SVG, the shown SVG output mess, with only nan's, indicates the same here.- I think something doesn't work the right way for your ADe2 installment! You may retry by quitting/restarting ADe and creating a new doc in order to see if it behaves the same odd way then or not, if it still behaves odd then try to remove and reinstall ADe2. I was able to get it fixed by copying the paths and pasting them in another file. <shrug> Quote
firstdefence Posted March 11, 2023 Posted March 11, 2023 If you change the units to px you can edit the stroke, anything else you get the slider to the right issue. Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions
jrhager84 Posted March 11, 2023 Author Posted March 11, 2023 37 minutes ago, firstdefence said: If you change the units to px you can edit the stroke, anything else you get the slider to the right issue. I tried before. It didn't work. I'm assuming that my actual program or some memory assigned to it for the file was corrupt. Copying it into another file fixed everything. firstdefence 1 Quote
firstdefence Posted March 11, 2023 Posted March 11, 2023 Thought I'd note the px thing in case it's a bug and it could be a clue to solving it. But agree, could simply be gremlins in the system. Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions
Old Bruce Posted March 11, 2023 Posted March 11, 2023 You have 0 DPI set for the USA.afdesign document. And the SVG image is approximately infinite in size. Quote Mac Pro (Late 2013) Mac OS 12.7.6 Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that.
jrhager84 Posted March 12, 2023 Author Posted March 12, 2023 18 hours ago, Old Bruce said: You have 0 DPI set for the USA.afdesign document. And the SVG image is approximately infinite in size. It was originally 300, but I must admit I didn't even notice that it had changed there. Doesn't really indicate where an error can be occurring, so I didn't even think to look there. This type of tribal knowledge makes troubleshooting really difficult. Thanks to all for the help! 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.