saving to svg deforms the drawing

Next
 From:  codi (CODISESAN)
10981.1 
I'm going crazy...
I do a simple drawing in moi;
i export to SVG format
I open the svg file in moi and the dimensions are different and the drawing "squashed"

A similar test done on home pc, (Windows 10) all ok
In the office (Windows 11) I always get this result....

Thanks for the help
Mario
Image Attachments:
Size: 374.9 KB, Downloaded: 28 times, Dimensions: 1920x1080px
Size: 289.7 KB, Downloaded: 23 times, Dimensions: 1920x1080px
Size: 280.8 KB, Downloaded: 17 times, Dimensions: 1920x1080px
Size: 356.3 KB, Downloaded: 14 times, Dimensions: 1920x1080px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10981.2 In reply to 10981.1 
Hi Mario,

re:
> i export to SVG format
> I open the svg file in moi and the dimensions are different and the drawing "squashed"

It's a bug in MoI's SVG export, the bug is that if your operating system locale is set to use the comma as the decimal point separator, MoI will accidentally generate a comma for the decimal point separator inside one spot in the SVG code which is only supposed to have a period as the decimal point.

For the moment you can fix it by editing the .svg file in a text editor. On the second line of the .svg file, go to the viewBox=" " attribute and replace any commas in the viewBox=" " with periods.


> A similar test done on home pc, (Windows 10) all ok
> In the office (Windows 11) I always get this result....

Probably on one system you have commas for the decimal point but on the other period for the decimal point?

Please let me know if it was not this issue.

Thanks,
- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  codi (CODISESAN)
10981.3 In reply to 10981.2 
Thank you Michael,
I will check and update you.

Mario
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  codi (CODISESAN)
10981.4 In reply to 10981.3 
Thank you Michael
Edited the svg file as you wrote - result ok

Changed decimal separator settings from "," to "."
Exported to svg correct , no scaling issues.

THANK YOU

Mario
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
10981.5 
Cool! ;)
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All