Argmaster / pygerber

Python implementation of Gerber X3/X2 standard with 2D rendering engine.
https://argmaster.github.io/pygerber/stable
MIT License
55 stars 11 forks source link

Create Gerber code minifier #33

Open Argmaster opened 1 year ago

ajw287 commented 1 year ago

This could be interesting! I'm interested in a way to make gerber outputs from multiple toolchains be comparable - would a gerber minifier might be a way to confirm similarity?

Argmaster commented 1 year ago

I think is is not really possible, as reordering drawing operations can change resulting image, for example when reordering clean draws before dark draws. This whole minifier idea was more about removing unnecessary whitespace from Gerber files, as they are not necessary in most cases I can think of.