Skip to content

SVG floatPrecision only 1 decimal place#5

Description

@akaleeroy

For people struggling with why small optimized SVGs are FUBAR... 馃憞

// Change this to 2 or 3!
options.coordinatePrecision = 1;

hostscript.jsx#L11

I tried setting floatPrecision: 3 from .svgo.yml but that was not the way to go.

You have to then repackage and sign the extension with ZXPSignCmd (it lets you generate a self-signed cert). com.dehats.svgnow is the folder.

ZXPSignCmd -sign com.dehats.svgnow SVGNOW.zxp cert.p12 password

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions