Directly render SVG overlays into Gerber and Excellon files
 
 
 
 
 
 
Go to file
jaseg 133f5bb98d README: add blurb on AGPL 2021-01-30 20:26:34 +01:00
gerbolyze Move gerbolyze python files to subdirectory 2021-01-30 20:16:19 +01:00
gerboweb remove ansible scripts, they are now in their own "infra" repo 2020-12-30 13:12:06 +01:00
screenshots Add screenshots for guide 2018-07-07 17:59:31 +02:00
svg-flatten Reorg: move svg-flatten files into subdir 2021-01-30 20:01:00 +01:00
testdata Move test data into subdir 2017-11-25 14:10:22 +01:00
upstream Add direct image export 2021-01-29 21:58:42 +01:00
.gitignore Initial commit 2021-01-24 18:44:56 +01:00
.gitmodules Add direct image export 2021-01-29 21:58:42 +01:00
LICENSE Gerber and SVG export working 2021-01-25 14:55:13 +01:00
MANIFEST.in Add MANIFEST 2018-07-08 13:04:56 +02:00
README.md README: Update commandline usage 2021-01-30 15:19:10 +01:00
README.rst README: add blurb on AGPL 2021-01-30 20:26:34 +01:00
sample1.jpg README: Update sample images 2019-02-23 11:48:24 +09:00
sample2.jpg README: Update sample images 2019-02-23 11:48:24 +09:00
sample3.jpg README: Update sample images 2019-02-23 11:48:24 +09:00
setup.py Bump version to v0.1.10 2019-03-26 02:15:32 +09:00

README.md

build/svg-render 2.0

Usage: build/svg-render [options]... [input_file] [output_file]

Specify "-" for stdin/stdout.

-h, --help
    Print help and exit
-v, --version
    Print version and exit
-o, --format
    Output format. Supported: gerber, svg, s-exp (KiCAD S-Expression)
-p, --precision
    Number of decimal places use for exported coordinates (gerber: 1-9,
    SVG: 0-*)
--clear-color
    SVG color to use for "clear" areas (default: white)
--dark-color
    SVG color to use for "dark" areas (default: black)
-d, --trace-space
    Minimum feature size of elements in vectorized graphics
    (trace/space) in mm. Default: 0.1mm.
--no-header
    Do not export output format header/footer, only export the
    primitives themselves
--flatten
    Flatten output so it only consists of non-overlapping white
    polygons. This perform composition at the vector level. Potentially slow.
--no-flatten
    Disable automatic flattening for KiCAD S-Exp export
--dilate
    Dilate output gerber primitives by this amount in mm. Used for
    masking out other layers.
-g, --only-groups
    Comma-separated list of group IDs to export.
-b, --vectorizer
    Vectorizer to use for bitmap images. One of poisson-disc (default),
    hex-grid, square-grid, binary-contours, dev-null.
--vectorizer-map
    Map from image element id to vectorizer. Overrides --vectorizer.
    Format: id1=vectorizer,id2=vectorizer,...
--force-svg
    Force SVG input irrespective of file name
--force-png
    Force bitmap graphics input irrespective of file name
-s, --size
    Bitmap mode only: Physical size of output image in mm. Format: 12.34x56.78
--sexp-mod-name
    Module name for KiCAD S-Exp output
--sexp-layer
    Layer for KiCAD S-Exp output. Defaults to auto-detect layers from
    SVG layer/top-level group names
-a, --preserve-aspect-ratio
    Bitmap mode only: Preserve aspect ratio of image. Allowed values
    are meet, slice. Can also parse full SVG preserveAspectRatio syntax.
--no-usvg
    Do not preprocess input using usvg (do not use unless you know
    *exactly* what you're doing)
-e, --exclude-groups
    Comma-separated list of group IDs to exclude from export. Takes
    precedence over --only-groups.