jekyll-minimagick icon indicating copy to clipboard operation
jekyll-minimagick copied to clipboard

mini_magick.rb:24:in `choose_processor': undefined method `size' for nil:NilClass (NoMethodError)

Open MattReimer opened this issue 11 years ago • 2 comments

Hey there,

Any idea what this might be?

https://gist.github.com/MattReimer/7c496330d83defcef549

MattReimer avatar Jan 19 '14 17:01 MattReimer

I got around the undefined method 'size' for nil:NilClass error by updating and relinking ImageMagick with Homebrew.

marcysutton avatar Jun 26 '14 22:06 marcysutton

Hi,

I met the same issue with jekyll, actually the nil come from the "mogrify" command that is not found. I you open the Terminal, type "mogrify" and nothing happen then maybe you should reinstall it by any means.

    def choose_processor
      if MiniMagick::Utilities.which('mogrify').size > 0
        self.processor = 'mogrify'
      elsif MiniMagick::Utilities.which('gm').size > 0
        self.processor = "gm"
      end
    end

I solve the issue by installing imagemagick on my mac with brew:

brew install imagemagick

then the jekyll build with the mini_magick works again.

jgrodziski avatar Jul 21 '14 13:07 jgrodziski