pcbdiff fails due to image size mismatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Even when two boards are the same size, the pcbdiff script sometimes generates images of differing size.
That in turn causes ImageMagick's "composite -stereo" command to fail, and no visual diff is shown.
I can avoid the effect in my use case by removing the "--only-visible" flag to pcb.
The attached pair.tar.gz includes two pcb files, check11.pcb and check12.pcb. To reproduce, "pcbdiff check11.pcb check12.pcb". Sorry the files are so big.
I can believe this behavior is triggered by graphical elements hanging off the edge of the nominal board area, e.g., the line forming the board outline is 10 mils wide and therefore hangs out by 5 mils.
At least for incomplete board designs -- of the kind that I want to track in version control -- sloppiness around the board edge is commonplace for me.
Changed in pcb: | |
status: | New → Fix Committed |
tags: | added: tools |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
Changed in pcb: | |
milestone: | none → pcb-20140316 |
Patch attached.
While I was in there, I made the 200 dpi default over-ride-able with the environment variable PCBDIFF_DPI.