Hi! I just tried the same...
-D1000 with some Testdata of mine generates an output image with 72 ppi, 6310 x 2924 pixels. The print size is 87.639 x 40.611 inches. -D300 with the same data however gives me 1893 x 877 pixels - also with 72 ppi. The print size is 26.292 x 12.181 inches then. So, you are right. Gerbv should keep the print size the same - by using the information from the gerber source. And then increase/decrease the ppi according to -D.. A minor bug. Patches are welcome. You can fix it with Gimp, if you need to. I didn't check how gerbview from the KiCad package does - it seems it cannot export to an bitmap directly - you would need to go some postscript/svg -> bitmap detour. (Otherwise it's also a very nice tool.) Greets, -- Fa. Dipl.-Ing. Clemens Koller Embeon Systemdesign und Elektronik 81371 Muenchen --- On 10/27/2014 09:13 PM, ノ ア wrote: > Hello gerbv-devel! I'm running gerbv 2.6.1 and cairo 1.14.1 (from > their git repository). > > I'm trying to convert a GBR to a PNG with a DPI of 1000. I tried > > gerbv board.GBR -D1000 -b'#FFFFFF' -f'#000000' --border=0 --export=png > --output=stencil.png > > but I get a 72x72 DPI image out, as reported by Imagemagick. Is this a > bug in Cairo, in gerbv, or in the way gerbv talks to cairo? I tried > modifying exportimage.c and main.c to use 1000DPI by default instead > of 72, and still got 72DPI images. > > Thanks! > > -\₪ > > ------------------------------------------------------------------------------ > _______________________________________________ > Gerbv-devel mailing list > Gerbv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gerbv-devel > ------------------------------------------------------------------------------ _______________________________________________ Gerbv-devel mailing list Gerbv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gerbv-devel