image_optim icon indicating copy to clipboard operation
image_optim copied to clipboard

Cannot pass options to svgo in rails config

Open jackycute opened this issue 10 years ago • 2 comments

I want to set svgo false or disable some plugins of it, but it just won't work. I put below line in my production.rb config.assets.image_optim = {pngout: false, svgo: {disable_plugins: ['convertPathData']}}

Tried several times but still no good, svgo touched my svg files, not even svgo:false work too. Fortunately pngout: false works good.

BTW ~/.config/image_optim.yml ./.image_optim.yml still working

version of image_optim: 0.22.0 version of svgo: 0.6.1

jackycute avatar Jan 05 '16 22:01 jackycute

I've switched verbose mode by adding verbose: true to view which commands are executed and with your options I see svgo --disable\=convertPathData … in the output. Also when I disable svgo by specifying svgo: false, svgo is not executed. It is a late reply, but is it possible for you to provide more information on this issue? What do you mean by svgo touched files?

toy avatar Mar 07 '16 15:03 toy

Touched means svgo still change my files. It's kind of a previous issue, I'm not sure what will it be now.

I will reply after I check it again.

jackycute avatar Mar 07 '16 16:03 jackycute