title: Imagemagick no such file or directory error in Mac
body: <p>I'm using carrierwave to upload images from my rails app, and later pass that image to resque for resizing them in the background. The image gets uploaded properly. The problem  when resque tries to resize it, mini_magick says that "No such file or directory"</p>
  
  <p>This is my ImageController code which handles the upload</p>
  
  <pre><code>#create image and embed into story
  def create
      img_attr =  params[:image]
      img_attr[:media] = params[:image][:media].first if params[:image][:media].class == Array
  
      image = Image.new img_attr
      @story.images &lt;&lt; image
      if @story.save
          Resque.enqueue(ImageQueue,image.id)
          respond_to do |format|
              format.json {
                  render :json =&gt; [image.to_jq_upload].to_json
              }
          end
      else
          render :json =&gt; [{:error =&gt; 'custom_failure'}], :status =&gt; 304
      end
  
  end
  </code></pre>
  
  <p>And this is my Resque code</p>
  
  <pre><code>class ImageQueue
  @queue = :image_queue
  def self.perform(image_id)
      image = Image.find image_id
      image.recreate_delayed_versions!
      image.save
  end
  end
  </code></pre>
  
  <p>And the upload path is set here</p>
  
  <pre><code>def store_dir
      "uploads/stories/#{model.viewable_id}/res"
  end
  </code></pre>
  
  <p>This is the error stack that I get</p>
  
  <pre><code>No such file or directory - /uploads/stories/533d5b8756617390c0070000/res/636a8fe128.jpg
  /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/mini_magick-3.7.0/lib/mini_magick/image.rb:110:in `initialize'
  /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/mini_magick-3.7.0/lib/mini_magick/image.rb:110:in `open'
  /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/mini_magick-3.7.0/lib/mini_magick/image.rb:110:in `open'
  /Users/skmvasu/repo/mangoweb/app/uploaders/image_uploader.rb:97:in `original_dimensions'
  /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/carrierwave-0.10.0/lib/carrierwave/uploader/processing.rb:84:in `block in process!'
  /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/carrierwave-0.10.0/lib/carrierwave/uploader/processing.rb:76:in `each'
  /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/carrierwave-0.10.0/lib/carrierwave/uploader/processing.rb:76:in `process!'
  </code></pre>
  
  <p>The weird thing is the same code works in my Linux box, and my production box which also runs Linux, but not on my new Mac. Is it a problem with ImageMagick? I'm installing it through Homebrew. I even tried uninstalling it and reinstalling it with source, but that didn't work either. </p>
  
  <p>I'm not sure what I'm doing wrong here? Please help me solve this issue. </p>