pygerber icon indicating copy to clipboard operation
pygerber copied to clipboard

Create Gerber code minifier

Open Argmaster opened this issue 2 years ago • 2 comments

Argmaster avatar Aug 19 '23 22:08 Argmaster

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?

ajw287 avatar Aug 27 '23 19:08 ajw287

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.

Argmaster avatar Aug 31 '23 17:08 Argmaster