Middleman_imageoptim

Hello everyone.

I’m having trouble building my site when active middleman-ImageOptim.

When I buid middleman says ":image_optim is deprecated. Please use :imageoptim instead."

Anyone knows how to solve this?

Thank you


My Gem file

source ‘https://rubygems.org

gem ‘wdm’, ‘~> 0.1.0’, platforms: [:mswin, :mingw]

gem ‘tzinfo-data’, platforms: [:mswin, :mingw, :jruby]

gem ‘middleman’, ‘>= 4.0.0’

gem ‘middleman-minify-html’, ‘>= 3.4.1’
gem ‘middleman-imageoptim’


My config.rb

configure :build do
activate :imageoptim
activate :minify_html, :remove_input_attributes => false
activate :minify_css
activate :minify_javascript

end

If you’re using v4 then I don’t think ImageOptim works with that version of Middleman: https://github.com/plasticine/middleman-imageoptim/issues/46

If you really want image optimisation you can use Gulp and the External Pipeline.
Here’s something I put together using Gulp Starter; it might be overkill for your needs.

Thanks craig dennis
Precisely that is what I have done, with Gulp’ve got no problems
Thanks for your input