Comments (6)
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.
This is a simple 10mm square from Illustrator to SVG:
If I import that to EasyEDA, it's 28.3x28.3mm
from easyeda-svg-import.
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.
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.
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.
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)
- Reimport of SVG not showing text location changes HOT 6
- Paths stopped showing. Log file? HOT 3
- Import Issues HOT 5
- Not Working? HOT 1
- Message: N items successfully imported HOT 2
- Syntax Error: Unexpected token import. HOT 8
- Parsing-Error on Numbers with multiple decimal points HOT 1
- custom pad shape HOT 3
- error when loading extension HOT 4
- Extension not appearing in Browser mode HOT 3
- No path-Tags found
- svg as board cutout border outline(purple line) HOT 1
- No path-Tags found (Add more supported tags) HOT 2
- Incorrect handling of S/s command HOT 2
- When importing SVG onto bottom silk later it doesn't flip it HOT 2
- <FR> Import multiple layers using label tags HOT 1
- Sample SVG that is bad rendered HOT 2
- Use 'createShape' API instead of editing project source HOT 1
- Use 'pointArr' of solid region for tracks with curves HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyeda-svg-import.