{"category":"image","description":"Removes what a browser never draws: comments, the XML declaration and doctype, metadata blocks, Inkscape, Sodipodi, Sketch, Figma and Illustrator editor data, empty groups, and white space between elements. Long decimal numbers in coordinates are rounded. Text, styles, ids, transforms and the viewBox are left exactly as they are, so the drawing looks the same.","endpoint":"https://setget.net/v1/tools/svg-optimize","examples":[{"input":{"svg":"sample.svg"},"title":"Clean up an SVG"},{"input":{"precision":1,"strip_scripts":true,"svg":"sample.svg"},"title":"One decimal place, scripts removed"}],"input_schema":{"additionalProperties":false,"properties":{"precision":{"default":3,"description":"Decimal places kept in coordinates and sizes. Numbers below 1 keep this many significant digits instead.","maximum":8,"minimum":1,"type":"integer"},"strip_scripts":{"default":false,"description":"Also remove scripts, event handlers such as onclick, and javascript: links.","type":"boolean"},"svg":{"description":"The SVG file to shrink.","format":"setget-file","type":"string","x-accept":["image","text"]}},"required":["svg"],"type":"object"},"keywords":["svg optimizer","svgo","minify svg","compress svg","clean svg","svg cleaner","inkscape","shrink svg","svg minifier"],"related":["image-to-data-uri","xml-format","image-compress","html-minify"],"slug":"svg-optimize","summary":"Shrink an SVG file by removing comments, editor data, metadata and spare white space, and rounding long decimals.","tier":"job","timeout_seconds":60,"title":"SVG optimizer","url":"https://setget.net/tools/svg-optimize"}
