pygerber
pygerber copied to clipboard
Create Gerber code minifier
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?
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.