svgcleaner flags / usage

USAGE:
    svgcleaner   --apply-transform-to-gradients  --apply-transform-to-paths  --apply-transform-to-shapes  --convert-segments  --convert-shapes  --coordinates-precision  --group-by-style  --indent  --join-arcto-flags  --join-style-attributes  --list-separator  --merge-gradients  --paths-coordinates-precision  --paths-to-relative  --properties-precision  --regroup-gradient-stops  --remove-comments  --remove-declarations  --remove-default-attributes  --remove-desc  --remove-dupl-cmd-in-paths  --remove-dupl-fegaussianblur  --remove-dupl-lineargradient  --remove-dupl-radialgradient  --remove-gradient-attributes  --remove-invalid-stops  --remove-invisible-elements  --remove-metadata  --remove-needless-attributes  --remove-nonsvg-attributes  --remove-nonsvg-elements  --remove-text-attributes  --remove-title  --remove-unreferenced-ids  --remove-unresolved-classes  --remove-unused-coordinates  --remove-unused-defs  --remove-unused-segments  --remove-version  --remove-xmlns-xlink-attribute  --resolve-use  --simplify-transforms  --transforms-precision  --trim-colors  --trim-ids  --trim-paths  --ungroup-defs  --ungroup-groups  --use-implicit-cmds 

For more information try --help
svgcleaner --help
svgcleaner could help you to clean up your SVG files from the unnecessary data.

A complete documentation can be found here: https://github.com/RazrFalcon/svgcleaner/blob/master/docs/svgcleaner.adoc

USAGE:
    svgcleaner [FLAGS] [OPTIONS]  

     can contain values: true, false, yes, no, y, n

EXAMPLES:
    clean a file with default options:
    svgcleaner in.svg out.svg

    clean a file with custom options:
    svgcleaner --indent=2 --paths-coordinates-precision=5 --join-arcto-flags=yes in.svg out.svg

    clean a file without default options:
    svgcleaner --no-defaults --remove-comments=yes in.svg out.svg

    clean a stream using UNIX pipes:
    cat in.svg | svgcleaner -c - > out.svg

FLAGS:
    -h, --help                              Print help information
    -V, --version                           Print version information
    -c, --stdout                            Print result to the standard output
        --no-defaults                       Reset default flags to 'no'
        --multipass                         Clean a file multiple times
        --allow-bigger-file                 Allow bigger file
        --copy-on-error                     Copy an original file to the destination on error
        --quiet                             Show only warnings and errors

OPTIONS:
Elements:
    --remove-comments                 Remove XML comments [default: yes]
    --remove-declarations             Remove XML declarations [default: yes]
    --remove-nonsvg-elements          Remove non-SVG elements [default: yes]
    --remove-unused-defs              Remove unused referenced elements [default: yes]
    --convert-shapes                  Convert basic shapes into paths [default: yes]
    --remove-title                    Remove 'title' element [default: yes]
    --remove-desc                     Remove 'desc' element [default: yes]
    --remove-metadata                 Remove 'metadata' element [default: yes]
    --remove-dupl-lineargradient      Remove duplicated 'linearGradient' elements [default: yes]
    --remove-dupl-radialgradient      Remove duplicated 'radialGradient' elements [default: yes]
    --remove-dupl-fegaussianblur      Remove duplicated 'feGaussianBlur' elements [default: yes]
    --ungroup-groups                  Ungroup groups [default: yes]
    --ungroup-defs                    Ungroup 'defs' element [default: yes]
    --group-by-style                  Group elements by equal styles [default: yes]
    --merge-gradients                 Merge gradients [default: yes]
    --regroup-gradient-stops          Regroup gradient 'stop' elements [default: yes]
    --remove-invalid-stops            Remove invalid 'stop' elements [default: yes]
    --remove-invisible-elements       Remove invisible elements [default: yes]
    --resolve-use                     Resolve 'use' elements [default: yes]

Attributes:
    --remove-version                  Remove 'version' and 'baseProfile' attributes [default: yes]
    --remove-nonsvg-attributes        Remove non-SVG attributes [default: yes]
    --remove-unreferenced-ids         Remove unreferenced 'id' attributes [default: yes]
    --trim-ids                        Trim 'id' attributes [default: yes]
    --remove-text-attributes          Remove text-related attributes if there is no text [default: yes]
    --remove-unused-coordinates       Remove unused coordinate attributes [default: yes]
    --remove-default-attributes       Remove attributes with default values [default: yes]
    --remove-xmlns-xlink-attribute    Remove an unused 'xmlns:xlink' attribute [default: yes]
    --remove-needless-attributes      Remove attributes that doesn't belong to this element [default: yes]
    --remove-gradient-attributes      Remove inheritable gradient attributes [default: no]
    --join-style-attributes          Join presentational attributes [values: no, some, all] [default: some]
    --apply-transform-to-gradients    Apply transformations to gradients [default: yes]
    --apply-transform-to-shapes       Apply transformations to shapes [default: yes]
    --remove-unresolved-classes       Remove unresolved classes from 'class' attributes [default: yes]

Paths:
    --paths-to-relative               Convert path segments into relative ones [default: yes]
    --remove-unused-segments          Remove unused path segments [default: yes]
    --convert-segments                Convert path segments into shorter ones [default: yes]
    --apply-transform-to-paths        Apply transformations to paths [default: no]
    --trim-paths                      Use compact notation for paths [default: yes]
    --join-arcto-flags                Join ArcTo flags [default: no]
    --remove-dupl-cmd-in-paths        Remove subsequent segments command from paths [default: yes]
    --use-implicit-cmds               Use implicit LineTo commands [default: yes]

Output:
    --trim-colors                     Use #RGB notation [default: yes]
    --simplify-transforms             Simplify transform matrices [default: yes]
    --coordinates-precision            Set coordinates numeric precision (1..12) [default: 6]
    --properties-precision             Set properties numeric precision (1..12) [default: 6]
    --transforms-precision             Set transform values numeric precision (1..12) [default: 8]
    --paths-coordinates-precision      Set path's coordinates numeric precision (1..12) [default: 8]
    --list-separator             Set number list separator [values: space, comma, comma-space] [default: space]
    --indent                        Set XML nodes indent [values: none, 0, 1, 2, 3, 4, tabs] [default: none]

ARGS:
                                   Input file
                                  Output file

Leave a Reply

Your email address will not be published. Required fields are marked *