Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MattReimer opened this issue Jan 19, 2014 · 2 comments

Comments

@MattReimer
Copy link

Hey there,

Any idea what this might be?

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

@marcysutton
Copy link

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

@jgrodziski
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants