Skip to content
This repository has been archived by the owner. It is now read-only.

convert in ImageMagick does not find modules on 10.9 Mavericks #29708

Closed
pvegh opened this issue May 30, 2014 · 10 comments
Closed

convert in ImageMagick does not find modules on 10.9 Mavericks #29708

pvegh opened this issue May 30, 2014 · 10 comments

Comments

@pvegh
Copy link

@pvegh pvegh commented May 30, 2014

https://gist.github.com/anonymous/cc23d00435989ef815f0

When using "convert", I am getting this:

convert: unable to load module /usr/local/Cellar/imagemagick/6.8.9-1/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1282. convert: no decode delegate for this image formatJPEG' @ error/constitute.c/ReadImage/501.
convert: no images defined `test.jpg' @ error/convert.c/ConvertImageCommand/3187.

I don't like the double slash in the error message. Still if I do
ls /usr/local/Cellar/imagemagick/6.8.9-1/lib/ImageMagick//modules-Q16/coders/jpeg.* I am getting:
/usr/local/Cellar/imagemagick/6.8.9-1/lib/ImageMagick//modules-Q16/coders/jpeg.la
/usr/local/Cellar/imagemagick/6.8.9-1/lib/ImageMagick//modules-Q16/coders/jpeg.so

So the files are actually there.

@ibihic
Copy link

@ibihic ibihic commented Jun 4, 2014

I'm having the same problem. Any luck?

@pvegh
Copy link
Author

@pvegh pvegh commented Jun 4, 2014

Sadly no.

@ibihic
Copy link

@ibihic ibihic commented Jun 4, 2014

So are you able to upload photos at all? I'm not but was able to last week. I'm trying to isolate if this is the only problem going on on my end. And figure out any work arounds

@ibihic
Copy link

@ibihic ibihic commented Jun 4, 2014

I played around with this a lot and seem to have it working now. I uninstalled updated and reinstalled a lot so hard to say if it was one of those things that eventually kicked in. But the last thing I did before it started working was that I was able to go back to an earlier commit where the uploader was working. There had been some changes between the gemfile and initializer. I reverted and it started working:

I included carrierwave direct, but now it seems to work without it too:
#uploads
gem "carrierwave", "0.9"
#gem "carrierwave_direct", "0.0.13"
gem "fog"
gem "rmagick", "2.13.2", require: false


CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS', # required
:aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'], # required
:aws_secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'], # required
}
config.fog_directory = ENV['FOG_DIRECTORY'] # required
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}
config.cache_dir = "#{Rails.root}/tmp/uploads"
end

class ImageUploader < CarrierWave::Uploader::Base
storage :fog
end

Hope this helps.

@hbrandl
Copy link

@hbrandl hbrandl commented Jun 6, 2014

running

brew uninstall jpeg
brew install jpeg

did the trick for me

@pvegh
Copy link
Author

@pvegh pvegh commented Jun 6, 2014

Yeah, that fixed it for me too.

@adamv adamv closed this Jun 6, 2014
@lolptdr
Copy link

@lolptdr lolptdr commented Sep 23, 2014

Just wanted to confirm also that

brew uninstall jpeg
brew install jpeg

fixed it for me as well.

My error:

play.rb:4:in `read': unable to load module `/usr/local/Cellar/imagemagick/6.8.9-7/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1282 (Magick::ImageMagickError

@fitnr
Copy link

@fitnr fitnr commented Oct 10, 2014

The following worked for me, and is probably a litle quicker than reinstalling:

brew unlink jpeg && brew link --overwrite jpeg

@tsironis
Copy link

@tsironis tsironis commented Jan 13, 2015

@fitnr that works perfectly. You just saved the day! 💯

@roc
Copy link

@roc roc commented Jan 26, 2016

@hbrandl @fitnr thanks for this!

@Homebrew Homebrew locked and limited conversation to collaborators Jan 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants