# SVG import error

**URL:** https://community.wazer.com/t/svg-import-error/384
**Category:** Help & Support
**Created:** [April 6, 2022, 10:35am UTC](https://community.wazer.com/t/svg-import-error/384 "2022-04-06T10:35:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bdenaeyer](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bdenaeyer](https://community.wazer.com/u/bdenaeyer)
#### Post date: [April 6, 2022, 10:35am UTC](https://community.wazer.com/t/svg-import-error/384/1 "2022-04-06T10:35:21Z")

</div>

Hi,

I’m Baptiste From France, and I try to import SVG into WAM. The SVG keep loading into the navigator. I started to investigate. The web console give me this error:

> angular.js:14800 TypeError: Cannot read properties of undefined (reading ‘toNumber’)  
> at Object.getSVGScale (wazercam.min.js:2:3192)  
> at Object.addNewSVGFile (wazercam.min.js:2:3801)  
> at Object.addFile (wazercam.min.js:4:13912)  
> at wazercam.min.js:4:16510  
> at wazercam.min.js:1:28277  
> at angular.js:20566:31  
> at completeOutstandingRequest (angular.js:6428:10)  
> at angular.js:6707:7

I realized that this error comme from the SVG that is declared like this for the global scale:

> \<?xml version="1.0" encoding="UTF-8" standalone="no"?\>
> 
> \<svg  
> width=“100%”  
> height=“100%”  
> viewBox=“0 0 1453 2868”

It’s seems that your application doesn’t accept percentages. And only accept PX and INCH. Is it possible to add european units as I am in France.

Regards,

Baptiste Denaeyer

---

<div class="post-metadata">

### Author: ![Alex](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.wazer.com/alex/32/14_2.png) [@Alex](https://community.wazer.com/u/Alex)
#### Post date: [April 6, 2022, 7:03pm UTC](https://community.wazer.com/t/svg-import-error/384/2 "2022-04-06T19:03:01Z")

</div>

Hello @bdenaeyer and Welcome to the Forum! If you would not mind, I would love to take a closer look into the SVG issue you are experiencing. Will you share the SVG file here?

At the moment, I believe the issue is the SVG file you are using is defined as a pixel image, which WAM cannot interpret. WAM can only interpret poly-lines (Nodes and Paths). Please make sure any pixel image within the SVG file is converted into a poly-line. If you let us know what software you are using to design in, we can look up a guide on how to convert pixels to poly-lines.

WAM can interpret inches or mm - please make sure the dimension setting matches in your design software and in the WAM software.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/wazer/original/1X/e866bf6a0f506315d0873be34e65b8cd5e0dbb5c.png)

---

<div class="post-metadata">

### Author: ![bdenaeyer](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bdenaeyer](https://community.wazer.com/u/bdenaeyer)
#### Post date: [April 7, 2022, 9:40am UTC](https://community.wazer.com/t/svg-import-error/384/3 "2022-04-07T09:40:07Z")

</div>

Hi Alex,  
Thanks for your quick answer.  
According to what you said, I tried to change inch to mm.  
Actually I use affinity designer which export svg workspace into percent units. Then I use inkscape to change the workspace in mm and then it works. When I edit the svg with notepad, I have a workspace in ‘mm’ and not in ‘%’. This was the cause of loading indefinitely.

Thanks,

Baptiste

---

<div class="post-metadata">

### Author: ![Alex](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.wazer.com/alex/32/14_2.png) [@Alex](https://community.wazer.com/u/Alex)
#### Post date: [April 7, 2022, 4:39pm UTC](https://community.wazer.com/t/svg-import-error/384/4 "2022-04-07T16:39:33Z")

</div>

I am glad to hear the import into WAM was resolved. The workaround you have utilized is great! Inkscape is a tool I am familiar with, but I do not have a lot of knowledge regarding Affinity Designer. I may try taking a look and play with Affinity Designer. Perhaps there is a way to export SVG files as mm from that software, that way Inkscape is not required.

Anyways, I appreciate your troubleshooting and sharing the results with the Forum. I look forward to seeing some of your projects come to life. Happy cutting!

---

<div class="post-metadata">

### Author: ![bdenaeyer](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bdenaeyer](https://community.wazer.com/u/bdenaeyer)
#### Post date: [April 8, 2022, 6:42am UTC](https://community.wazer.com/t/svg-import-error/384/5 "2022-04-08T06:42:16Z")

</div>

Yes, I have to investigate as well if there is options in affinity that would allowed me not to use Inkscape. I would be more straightforward 😉
