なぜか MiniMagickが遅すぎたのだった。 MiniMagickはナウなヤングが使うイケテルツールとのことだったのだけど、コマンドにオプションを渡す度に mogrify コマンドを実行するため、でかい画像であればあるほど、前処理の為に時間が掛かる。まー初回にresizeを噛ませばちょっとはましになるところだけど、それにしても毎回実行してほしくない感じなのだった。 で、作ったのがこれ https://github.com/sugamasao/simple_magick https://rubygems.org/gems/simple_magick 使い方はREADMEにある通りだけど、こんな感じ。 require 'simple_magick' if SimpleMagick.imagemagick_installed? image = SimpleMagick::Image.new(