Tuesday, March 18, 2014

Problem uploading image using MiniMagick gem in OSX

Rails gave the following error when saving ActiveRecord object with photo.

Validation failed: Photo Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: MiniMagick::Invalid
After some digging, realized that my ImageMagick couldn't handle JPEG files. To be sure do the following:

convert -list configure
You should be able to see "jpeg" as one of the entries in "DELEGATES". If not, do the following:

brew remove jpeg
brew remove imagemagick
brew install jpeg
brew install imagemagick
References:
http://stackoverflow.com/questions/10810356/carrierwave-error-msg-failed-to-manipulate-with-minimagick-maybe-it-is-not-an http://stackoverflow.com/questions/5624778/imagemagick-jpeg-decode-delegate-missing-with-os-x-homebrew-install

Monday, March 10, 2014

Fix OSX in built iSight camera not detected


sudo killall VDCAssistant
That's it!