Giter VIP home page Giter VIP logo

Comments (6)

xsrf avatar xsrf commented on July 23, 2024

I'm not sure. The extension doesn't really read or understand different units or scaling factors. It just reads the raw coordinates from the SVG file. Can you make a 10x10mm square and look at the file what the raw coordinates are? Or just upload it?

from easyeda-svg-import.

finnglink avatar finnglink commented on July 23, 2024

This is a simple 10mm square from Illustrator to SVG:

https://pastebin.com/s1xJQCLw

If I import that to EasyEDA, it's 28.3x28.3mm

from easyeda-svg-import.

xsrf avatar xsrf commented on July 23, 2024

Yeah, the raw value in the file is 28.3 for 10mm.
so... 28.3 dots / 72 dots/inch * 25.4 inch/mm = 9,98 mm. Kinda close, I guess?
And because EasyEDA works in 0.01 inch/unit you should use 0.01 inch/units / 72 dots/inch = 1.388888888889e-4 as factor.
I may have lost four orders of magnitude somewhere 🤔 and now my head hurts 🥴 but 1.3888888888... seems correct.
Hope this helps? You'll always get some conversion errors though...
Is there any way to change it in AI?

from easyeda-svg-import.

ntr-tm avatar ntr-tm commented on July 23, 2024

Hello, thanks a lot for the extension ! It saves my life :) I have a same size problem using also Inkscape but the 1.3888888888 ratio works fine. On the other hand when I import a svg file, it always imports inversed mirror shapes which I can fix them using flip and rotate options but it would be nice to fix that issue.
Cheers

from easyeda-svg-import.

xsrf avatar xsrf commented on July 23, 2024

Hello, thanks a lot for the extension ! It saves my life :) I have a same size problem using also Inkscape but the 1.3888888888 ratio works fine. On the other hand when I import a svg file, it always imports inversed mirror shapes which I can fix them using flip and rotate options but it would be nice to fix that issue. Cheers

Thanks :) Please open a new issue and include an SVG that causes the mirrored imports. I've never seen this.

from easyeda-svg-import.

jerrinjms avatar jerrinjms commented on July 23, 2024

Hello, I was playing with SVGs from illustrator and stumbled upon the same scaling issue.
Its a powerful plugin given the functionality, and 1.3888 scaling factor works for now but it would be great if it could be addressed at some point.
Thank you!

from easyeda-svg-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.