Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8333315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:59:13+00:00 2026-06-09T02:59:13+00:00

Looks like multiple people have this same/similar issues and there are a couple of

  • 0

Looks like multiple people have this same/similar issues and there are a couple of reported fixes for it that I’ve found on SO here . Unfortunately, they are not working for me. I’m running MacOS Lion. Here is what I’ve done so far:

1) Standard RefineryCMS install. Runs well except for uploading images.
2) Once I encounter the problem, I added a configuration file per the Dragonfly docs:

# configure/initializers/dragonfly.rb
require 'dragonfly/rails/images'

3) That didn’t work. I reinstalled ImageMagick. Confirmed ImageMagick is installed:

# whereis convert
/usr/bin/convert
# whereis identify
/usr/bin/identify

4) That didn’t fix things, so I set up symbolic links for /usr/bin and /usr/local/bin:

lrwxr-xr-x  1 root  wheel  22 Aug  4 11:00 /usr/bin/convert -> /opt/local/bin/convert
lrwxr-xr-x  1 root  wheel  23 Aug  4 11:01 /usr/bin/identify -> /opt/local/bin/identify
lrwxr-xr-x  1 root  admin  22 Aug  4 11:06 /usr/local/bin/convert -> /opt/local/bin/convert
lrwxr-xr-x  1 root  admin  23 Aug  4 11:07 /usr/local/bin/identify -> /opt/local/bin/identify

5) That didn’t work so I set up a new config file per the Dragonfly docs and some additional instructions:

# config/initializers/dragonfly.rb
require 'dragonfly'

app = Dragonfly[:images]
app.configure_with(:imagemagick)
app.configure_with(:rails)

app.define_macro(ActiveRecord::Base, :image_accessor)

app.configure do |c|
  c.convert_command = "/opt/local/bin/convert"          # defaults to "convert"
  c.identify_command = "/opt/local/bin/identify"        # defaults to "identify"
  c.log_commands = true                                 # defaults to false
end

6) That did not fix it. Based on a GitHub issue I added this

# config/application.rb
module Refincmstest
  class Application < Rails::Application
    # trying a fix for image magic
    initializer 'override-image-magick-paths', :after => 'attach-refinery-images-with-dragonfly' do
      Dragonfly[:refinery_images].configure do |c|
        c.convert_command = "/opt/local/bin/convert"          # defaults to "convert"
        c.identify_command = "/opt/local/bin/identify"        # defaults to "identify"
      end
    end
  end
end

And that that did not work. Here is the console output, if this helps:

Started POST "/refinery/images?dialog=true" for 127.0.0.1 at 2012-08-04 12:23:54 -0700
Processing by Refinery::Admin::ImagesController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"Nddc/uPbbAGevNH15M6nzo/AJmVskIClJYZ5O60KDTU=", "image"=>{"image"=>[#<ActionDispatch::Http::UploadedFile:0x007fe5cd383e10 @original_filename="Photo on 2010-10-27 at 22.46 #2.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"image[image][]\"; filename=\"Photo on 2010-10-27 at 22.46 #2.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/var/folders/rr/1_vvbrvd3ylgpdv8f2z3qqp80000gn/T/RackMultipart20120804-97351-xbv8ew>>]}, "wymeditor"=>"", "modal"=>"true", "dialog"=>"true", "app_dialog"=>"true", "field"=>"", "update_image"=>"", "thumbnail"=>"", "callback"=>"", "conditions"=>"", "locale"=>:en}
  Refinery::Role Load (0.2ms)  SELECT "refinery_roles".* FROM "refinery_roles" WHERE "refinery_roles"."title" = 'Refinery' LIMIT 1
  Refinery::User Load (0.1ms)  SELECT "refinery_users".* FROM "refinery_users" INNER JOIN "refinery_roles_users" ON "refinery_users"."id" = "refinery_roles_users"."user_id" WHERE "refinery_roles_users"."role_id" = 1
  Refinery::User Load (0.1ms)  SELECT "refinery_users".* FROM "refinery_users" WHERE "refinery_users"."id" = 1 LIMIT 1
  Refinery::UserPlugin Load (0.2ms)  SELECT "refinery_user_plugins".* FROM "refinery_user_plugins" WHERE "refinery_user_plugins"."user_id" = 1 ORDER BY position ASC
  Refinery::Role Load (0.1ms)  SELECT "refinery_roles".* FROM "refinery_roles" INNER JOIN "refinery_roles_users" ON "refinery_roles"."id" = "refinery_roles_users"."role_id" WHERE "refinery_roles_users"."user_id" = 1
Completed 500 Internal Server Error in 210ms

Dragonfly::Shell::CommandFailed (Command failed (identify '/var/folders/rr/1_vvbrvd3ylgpdv8f2z3qqp80000gn/T/RackMultipart20120804-97351-xbv8ew') with exit status ):
  dragonfly (0.9.12) lib/dragonfly/shell.rb:29:in `raise_shell_command_failed'
  dragonfly (0.9.12) lib/dragonfly/shell.rb:23:in `run'
  ...

I’m out of ideas. Any suggestions on where to go next?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:59:16+00:00Added an answer on June 9, 2026 at 2:59 am

    Did some more researching and found that although I had used Mac Ports to update ImageMagick, my installation was somehow corrupt. I found this by trying to execute the /opt/local/bin/identify command manually. Multiple attempts to reinstall with Map Ports failed (Mac Ports has some very serious problems running on a mac book air running lion.) I installed Mac Brew and and installed ImageMagick via brew. After removing my symbolic links and ensuring that dragonfly was configured to point to /usr/local/bin everything worked.

    Moral of the story – Don’t use Mac Ports if you are on a MacBook Air running Lion. The install of multiple ImageMagick prerequisites fail even after reinstalling Mac Ports with the latest version. Similar thing happened to me a few months ago with another Mac Ports install. Had to temporarily retro back a previous version of the Mac dev tools. Such a pain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a JSON variable that looks like this: var peopleList = {
I have a DOM situation that looks like this: A is an ancestor of
I have multiple buttons that gets created in a table which all look like
I have multiple tables in a MySQL database. Lets say they look like this:
Looks like operator new and operator new[] have exactly the same signature: void* operator
If I have an array that contains multiple FLV files like so: my @src_files
I have a few tables that have similar fields but not exactly the same.
I have a bit of code like this in my template: #{list people, as:'person'}
Looks like this question has been asked thousand times already, but each person's configuration
Looks like there is no Load event for usercontrol on the CF. I'm used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.