Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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;"/>

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

Posted

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.

 

image.png.525cc8f301ef11cc73009e9673f37ddc.png

Posted
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.

☛ 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

Posted
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>

Posted

If you change the units to px you can edit the stroke, anything else you get the slider to the right issue.

image.thumb.png.ffb12fd54bc77b3ce70b9a5734cf5132.png

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  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Posted
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.

image.thumb.png.ffb12fd54bc77b3ce70b9a5734cf5132.png

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.

Posted

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. 

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  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Posted

 

You have 0 DPI set for the USA.afdesign document. And the SVG image is approximately infinite in size.

1459714616_ScreenShot2023-03-11at6_25_53AM.png.5d012abc38eccb39561a9085cc1f3397.png

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.

Posted
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.

1459714616_ScreenShot2023-03-11at6_25_53AM.png.5d012abc38eccb39561a9085cc1f3397.png

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!

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.