Andrew-Dickinson / photonic-etcher

Generate exposure masks for Anycubic printers from PCB Gerbers
https://andrew-dickinson.github.io/photonic-etcher
MIT License
86 stars 10 forks source link

Fix import scale issue for gerbers using imperial units #17

Closed errolt closed 5 months ago

errolt commented 5 months ago

Eagle uses inch for it's units in the gerbers.

gerber-to-svg retains the inch units.

This patch checks if the width value in the SVG ends with "in" then multiplies the sizes with 25.4 to get to mm.

Andrew-Dickinson commented 5 months ago

This is great! Thanks for tracking this down. If you can bump the version to 1.3.1 in package.json I'll merge this today

errolt commented 5 months ago

@Andrew-Dickinson Package version updated.

errolt commented 5 months ago

Thank you for merging so quickly! :-)