8000 mini_magick.rb:24:in `choose_processor': undefined method `size' for nil:NilClass (NoMethodError) · Issue #9 · zroger/jekyll-minimagick · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@MattReimer

Hey there,

Any idea what this might be?

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

Activity

  1. marcysutton commented on Jun 26, 2014

    @marcysutton

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

  2. jgrodziski commented on Jul 21, 2014

    @jgrodziski

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0