-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Version 2 has CLI changes, which makes it incompatible with image_optim. I have not dug into the code to see how the different versions can be handled, but for now, I can say that a call like
optimizer = ImageOptim.new(svgo: { enable_plugins: %w[removeScriptElement removeStyleElement removeOffCanvasPaths removeRasterImages] })
optimizer.optimize_image! pathleaves the picture unchanged.
From the release notes:
Painful
coawas replaced with well maintainedcommander.
--enableand--disableflags are removed. In later versions we will explore
plugins setup via CLI.Inlined json config is no longer suppored. CLI flags should be used instead.
--config="{multipass:true}"By default SVGO CLI will search for
svgo.config.js.--configflag allows
to specify js config with any name.YAML and JSON configuration is no longer supported for the sake of simplicity
and less dependencies.
Metadata
Metadata
Assignees
Labels
No labels