Skip to main content
Participating Frequently
June 3, 2024
Question

Exporting svg adds a lot of points when opened in JPEXS

  • June 3, 2024
  • 3 replies
  • 5993 views

Hi,

I have an svg that I wanted to reduce the number of points it has significantly. The original has 4400 points and when I simplify the paths it goes down to 500 which would be really good for performance in game. But when I export and open it, it still has over 4000 points. (I tried it with an already optimized file and it actually added many tousands more points). It is NOT a problem with JPEXS. When exported and opened with a text editor it actually shows that there are a lot of points in the file which is strange because when reopened in AI the paths look good.

How can I export the svg with exactly as many points as in the editor?

 

            (In Adobe Illustrator  vs  In JPEXS)

  

This topic has been closed for replies.

3 replies

Srishti Bali
Community Manager
Community Manager
June 25, 2024

Hi there, 

 

I hope the issue has been resolved by now. If not, please feel free to respond to this thread. I'm here to help and would be happy to assist you.

 

Regards,

Srishti

derekwatson
Community Expert
Community Expert
June 5, 2024

Have you tried adjusting the slider to reduce the number of points from the default setting?

Derek Watson
Participating Frequently
June 6, 2024

Hey, thank you for the reply. Check the other reply where I explain better.

derekwatson
Community Expert
Community Expert
June 6, 2024

I regularly use Vector First Aid, part of the Astute Graphics suite which is excellent at doing just this, especially files from Fresco. There is a subscription cost however. 

Derek Watson
Anubhav M
Community Manager
Community Manager
June 5, 2024

Hello @ChocolateFountain,

Thanks for reaching out. I tried replicating this on my end but was unable to do so. Would you mind sharing more details, like the exact OS/Illustrator version, details of your exact workflow including a screen recording (if possible), and a public link to a sample file after uploading it to Dropbox/Google Drive/etc. so we can check it on our end.

Looking forward to hearing from you.

 

Thanks,

Anubhav

Participating Frequently
June 6, 2024

Hi,

thank you for your answer. Here is a link for a file that you can test for yourself : https://www.dropbox.com/scl/fo/7tbt8a6xruagw30yai6k1/AGyzBmIpy7aE7ozVMgdWEu4?rlkey=648zc9q0zcc6rezjgogvc8ndy&st=uf90vgnd&dl=0

But I will also try to explain it better. Here is the file I shared opened in AI (v28.2):

 As you can see there are 446 points making it up. Here it is opened in JPEXS:

 As you can see every point (the square ones) correspond to one in AI. The shape record also shows the correct amount of data:

Now I simplify all paths to reduce complexity:

And AI shows the points reduced to 203 which is great for performance for me. (The files I want to optimize are ofcourse much more complex, this file is only for demonstration). But saving it and importing it to JPEXS will get me this:

There are many more points (more than double) that I do not want. The shape record also shows that this is not just a problem with JPEXS, these are actual points in the file:

So this is what I would like to solve, to only save the points that you can see in AI and no other hidden points that JPEXS can see.

In addition if I do the steps above (simplify then save) and undo the changes with CTRL+Z and then save again, the same thing happenes but with the point in JPEXS growing linearly (Instead of 932 records there are 1700). So it does not even give me back the original file.