Hi, I'm currently working on a tool to get nice graphics out of Gerber/Excellon files, and decided to use gerbv as the tool of choice for creating plain images out of all files.
To exactly position the files afterwards, I thought setting '-O 0x0' as cli option would be enough, so that the southwest corner of all images will be the same. Appareantly, it doesn't work this way, the images get slightly misplaced. The single files I used for testing are available at: http://muschel.a-ix.net/~mo/private/gv/mkii.GKO http://muschel.a-ix.net/~mo/private/gv/mkii.GKO.png http://muschel.a-ix.net/~mo/private/gv/mkii.XLN http://muschel.a-ix.net/~mo/private/gv/mkii.XLN.png combined version: http://muschel.a-ix.net/~mo/private/gv/mkii-combined.png Command line to reproduce are: ### create images gerbv -O 0x0 -D 600 -b '#000000' -f '#ffffffff' -x png -a \ -o mkii.GKO.png mkii.GKO gerbv -O 0x0 -D 600 -b '#000000' -f '#ffffffff' -x png -a \ -o mkii.XLN.png mkii.XLN ### leave only black holes, make board red convert -transparent black -fill black -opaque white mkii.XLN.png\ mkii.XLN.mod.png convert -fill red -opaque black mkii.GKO.png mkii.GKO.mod.png ### combine, use 0x0 (southwest) as common point composite -compose SrcOver -gravity SouthWest mkii.XLN.mod.png \ mkii.GKO.mod.png mkii-combined.pn Thanks Moritz ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Gerbv-devel mailing list Gerbv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gerbv-devel