Skip to content

funk4d/MacSVGO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacSVGO icon

MacSVGO

A minimal macOS desktop app for batch SVG optimization. Drop files or pick a folder — optimized SVGs are saved to a /optimized subfolder.

MacSVGO main window

How it works

  • Drag and drop SVG files onto the window — you'll be prompted to choose a save location
  • Choose Folder — scans the selected folder for .svg files and optimizes them in place (into a /optimized subfolder)
  • Results show original vs optimized size and total savings percentage

Settings

Click the gear icon to open the settings panel with full control over the optimization pipeline.

MacSVGO settings panel

General:

  • Multipass — run plugins multiple times for better results
  • Number precision (0-8) — decimal precision for numeric values
  • Transform precision (0-8) — decimal precision for transform values

Features (40 toggles):

  • Remove doctype, XML instructions, comments, metadata, editor data
  • Clean up attribute whitespace, IDs, numeric values
  • Merge/inline/minify styles, convert style to attributes
  • Remove unknowns & defaults, unneeded group attrs, useless stroke & fill
  • Remove hidden elements, empty text, empty attrs, empty containers
  • Collapse useless groups, merge paths, round/rewrite paths and transforms
  • Convert shapes to paths, ellipse to circle, colours
  • Sort attrs and defs children
  • Remove viewBox, title, desc, dimensions, style elements, scripts
  • Remove unused defs and namespaces, out-of-bounds paths, deprecated attributes
  • Replace duplicate elements with links, replace xlink with native SVG
  • Convert one-stop gradients to solid colours

Development

npm install
npm start

Build

npm run dist

Produces dist/MacSVGO-1.0.0-arm64.dmg.

Credits

Powered by SVGO. Settings panel inspired by SVGOMG.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors