Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of imported SVG files #13

Closed
Cysign opened this issue Dec 20, 2021 · 6 comments
Closed

Size of imported SVG files #13

Cysign opened this issue Dec 20, 2021 · 6 comments

Comments

@Cysign
Copy link

Cysign commented Dec 20, 2021

Just checked out your powerful plugin, looks great so far. But I have a strange behavior:
Opening the example files works well.
Ons I edited a single anchor using Illustrator (CS5) or Inkskape (v1.1) and save the file and import it to FreeCad, the size of the whole body is changed, not only of one single curve.

@mnesarco
Copy link
Owner

Take care of units. Svg file must be in real size in mm. Units management is not consistent in svg files, but inkscape can manage it. Just be sure that your file's general units are mm.

@Cysign
Copy link
Author

Cysign commented Dec 20, 2021

I've uploaded my files here in a zip archive: https://www.file-upload.net/download-14786725/svg_comparison.zip.html

I've checked the measurements using Illustrator and I couldn't find any difference.

@mnesarco
Copy link
Owner

I imported one svg into the other one and your drawing is clearly smaller.
LesStratCaster.svg.zip

@mnesarco
Copy link
Owner

Also the viewport of your file is in pixels.

In the provided example file (example_custom_body.svg):

   width="601.51996mm"
   height="473.16891mm"
   viewBox="0 0 2273.4613 1788.355

In your file: (LesStratCaster.svg)

width="1705.096px" 
height="1341.266px" 
viewBox="0 0 1705.096 1341.266" 

@mnesarco
Copy link
Owner

I don't know about CS5, but in Inkscape you can check:
screenshot_44

@Cysign
Copy link
Author

Cysign commented Dec 20, 2021

Wow, thanks!

@Cysign Cysign closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants