GBR2TIFF.EXE Command Line Syntax

The gbr2tiff program is often run from the command line. The complete syntax and options are shown below. Note that there are no breaks in the command line - the breaks shown below are only for clarity.

gbr2tiff.exe

 gbrfile(s)
 
     [-xf xformfile] 

        [ -tiff:outputfile | -bmp:outputfile | -ps2:outputfile | -bitmap:outputfile  ]

           [other_options]  



 where

 gbr2tiff                      the gbr2tiff program

 gbrfile                       the Gerber file to be ripped


 -xf:xformfile                 optional; name of an ascii file contain
                               transform parameters for mirroring, rotation
                               and scaling.




The following output types are available (outtype:filename) Select one:

 -tiff:outputfile              output file in 1 bit tiff; uncompressed

 -pack:outputfile              output file is 1 bit tiff; packbits compression.

 -bmp::outputfile              output in Windows BMP (monochrome)
                 
 -bitmap:outputfile            output is raw bitmap (uncompressed)

 -bigtiff                      Turn on  Big TIFF.




[other options]                if these are used as command line arguments then they
                               supersede the same directive in the xform file.

-ram:R                         use R as the raster buffer size (Mb) default=32M

-units:                        {inch | mm} specifies xformfile units 
                               with the exception of Resolution (DPI) 
                               which is always in inches 
                               (aliases -inch, -mm)

-dpi:DPI                       dots per inch (fractions OK)

or

-dpm:DPM                       dots per millimeter (fractions OK)
                               
or

-pixelsize:P                   diameter of pixel (units will be inch or
                               mm based on -units value)

-dpx:[DPX]                     indicates the integral reduction of DPI in X
-dpy:[DPY]                     indicates the integral reduction of DPI in Y

-inverse                       output image polarity is reversed (bits are flipped)

-reverse                       remaps the BMP color table to reverse darkest/lightest


-super:[ 2 | 4 | 8 | 16 ]      super sample output

-super:18                      monochrome TIFF or BMP but using 8 bits per pixel.

-super:28                      super sample output 2x2 and each byte corresponds to one 
                               pixel (-tiff). -super:2, each byte contains 4 pixels.

-super:48                      super sample output 4x4 and each byte corresponds to one 
                               pixel (-tiff). -super:4, each byte contains 2 pixels.


-rle                           BMP for GREYSCALE output with RLE8 compression


-bmp4gb                       output is Windows BMP to avoid 4GB limit (avoids the check 
                               for file and image sizes and writes "0" into the BMP header 
                               fields that hold the image and file size.


-color[:2 | 16 | 256]          set BMP output to 2, 16, or 
                               256 greyscale modes (BMP only)


-greylevel:L,H,D              specify min grey value to be L, max value to be H, 
                               and that of drill files to be D (only valid for -super:16)

-add {GerberDrillFile}         add GerberDrillFile to base image (to be used in 
                               conjunction with -super:16 and -greylevels)


-asizeup:X                     size aperture info up by X units

-rotate:A                      rotate image A degrees (alias -rA) 
                               (when using -imagesize -rotate:auto is valid)

-scale:X[,Y][@P,Q]             scale data by X and Y in the x 
                               and y directions respectively 
                               (optionally about the point P,Q) 
                               (default: X = Y) (alias -sX)

-shift:X,Y                     translate data by X and Y 
                               (incompatible with -wplot)

-xmirror:X                     reflect data about the line x = X 
                               (-wplot implies simple X mirror, i.e. -mirror:x)

-ymirror:Y                     reflect data about the line y = Y 
                               (-wplot implies simple Y mirror, i.e. -mirror:y)

-drawadj:A                     same as above except the amount of adjustment
                               is user specified. (Units based on value in
                               transform file, or delineated on command line)

-step:Nx,Ny,Dx,Dy              arrays data in an Nx by Ny rectangular 
                               array with spacing of Dx and Dy

-wplot x0,y0 x1,y1             rasterize data in the window from x0,y0(LL) 
                               to x1,y1(UR)

or

-wplot @filename               where filename is an ascii text file that
                               contains a number lines and each line has
                               the window's corner coordinates:
                               LLx,LLy URx,URy Requires multi-window
                               license.

-pause                         don't run right away, wait for user intervention.
                               requires -status

-status                        run visibly.

-logcalls                      record the calls to setupFunc to plot.log
                               for debugging purposes.


-nopad                         do not pad tiff output to the nearest byte.

-noplot                        do not create any output, rip data only;
                               for debugging purposes.

-scanonly                      do not create any output, scan 
                               input GERBER file only


-aw                            auto window data (overrides -wplot parameters).

-aw:L,R,T,B                    auto window data with margins where L, R, T and B 
                               are the margins on the left, right, bottom, and 
                               top (don't use with -margin).
                               

-margin:X                      provide a border of X units (used in conjunction 
                               with -wplot or -aw).

-margin:L,R,B,T                provide a border where each side (L=left, R=Right,
                               B=bottom and T=top) is independently set by
                               the user.


-threshold:N,N,N               Associated with super sampling (-super:2, -super:4, 
                               -super:8, -super:16).
                               The output is always 2 bits per sample. 


Engine Arguments               arguments that follow -engargs  do not affect 
                               GBR2TIFF but are passed to the gbrplt.dll
                               argument list.

-engargs

  -novalidate                  turns off input file validation.

  -compensate                  compensate G36/G37 data by 1/2 pixel (implies validation, same as -contours)
                               if -compensate is used, it forces validation also.

  -thrnum:N                    Use multiple threads for faster rasterization. 
                               Requires additional key codes.

  -msgcbs                      suppress popups and make use of 
                               message callbacks instead

  -keep                        do not delete temporary files

  -logmem                      report memory statistics to plot.log

  -loglibs                     log library usage to plot.log
  
  -drawadj[:V]	               "uncompensate" trace data by Value when compensating contour data
  
  -slant_adjust                Turn ON corrections for round ended linear draws when the slope of a trace was between -20 and 20 degrees. 




Download Price Rev. History Example Benchmark Home