rmagick

exif image rotation issue using carrierwave and rmagick to upload to s3

旧时模样 提交于 2019-11-27 03:57:41
I've got a photo upload feature in my rails app. The app uploads direct to s3 through carrierwave via rmagick and fog. The issue I am having is when a photo is uploaded via mobile through the "take a photo option" in portrait (note this is with iphone but I believe android has the same issue). Once uploaded the image appears fine on mobile, however when viewed on desktop the image appears rotated 90 degrees. Through my research it looks to be an issue with exif. This stackoverflow responder outlines 2 potential solutions. This gist also looks promising as well. So far I have found a few

ImageMagick - “CORE_RL_magick_.dll not found” or how to install RMagick on windows with ruby 1.9.2

一世执手 提交于 2019-11-27 03:40:55
I'm working on a Rail3 app. After struggling for several hours and finally installing the rmagick 2.13.1 gem without errors on win7x64 / ruby 1.9.2, I've run into another error. Yeah, I've heard that rails experience in windows could be painfull... I use carrierwave to process and upload images to AWS S3. Processing looks like class IconUploader < CarrierWave::Uploader::Base require 'rmagick' include CarrierWave::RMagick ... process :resize_to_fit => [100, 100] process :convert => :png ... When I trigger file upload on my development machine, it throws me a windows popup, saying CORE_RL_magick

rmagick gem install “Can't find Magick-config”

跟風遠走 提交于 2019-11-27 02:27:01
I get the error shown below when attempting to install the rmagick gem. I am on Snowleopard 10.6 using RVM, Ruby 1.9.2-head and Rails 3.05. Responses to similar questions recommended installing ImageMagick, which I successfully did. Other suggested installing the "libmagick9-dev library", however, I can not figure out how to do this. I'm a new developer, and any assistance or directions to an existing explanation or resource is greatly appreciated. Thanks! jjdevenuta(opal)$ gem install rmagick Fetching: rmagick-2.13.1.gem (100%) Building native extensions. This could take a while... ERROR:

Error installing Rmagick on Mac OS X

跟風遠走 提交于 2019-11-27 01:41:19
问题 I followed the installation of RMagick for OSX: http://rmagick.rubyforge.org/install-faq.html#osx I have done the Imagemagick installation from John Maddux (solution to install ImageMagick on OSX without using MacPorts ) Here's my terminal window: Suebphatt:~ suebphattleelertphong$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] Suebphatt:~ suebphattleelertphong$ rails -v Rails 3.0.3 Suebphatt:~ suebphattleelertphong$ gem -v 1.3.7 Suebphatt:~ suebphattleelertphong$ gem

rmagick and OS X Lion

北城以北 提交于 2019-11-27 00:51:14
问题 Just upgraded (i.e. not a new install) to Lion from Leopard and my previously well-working rmagick now doesn't work anymore and gives me this error: Your Rack app raised an exception when Pow tried to run it. LoadError: dlopen(/Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib Referenced from: /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib

ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config

孤人 提交于 2019-11-26 23:59:55
问题 I used a script to install ImageMagick http://github.com/masterkain/ImageMagick-sl After a while, I got ImageMagick installed. Then I ran sudo gem install rmagick and got Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. .rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc... yes checking for Magick-config... no Can't install RMagick 2.13.1. Can't find Magick

Ruby on Rails RMagick on Windows 7

血红的双手。 提交于 2019-11-26 20:59:29
问题 Alright, I've been trying to install Rmagick on a Windows 7 x64 machine pretty much all day. I've checked out every single tutorial on Stack Overflow and other sites, but I keep getting an "Invalid Drive Specification" error no matter which tutorial I follow. My environment came from http://railsinstaller.org/. Has anyone successfully installed Rmagick recently that can point me in the right direction? Thanks, this is driving me crazy but I really have to get it working. 回答1: First and most

Can't install RMagick 2.13.1. Can't find MagickWand.h.

一个人想着一个人 提交于 2019-11-26 18:11:39
When I try do install rmagick I get the following error message: Can't install RMagick 2.13.1. Can't find MagickWand.h. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. I'm on Mac OSX 10.6.8, ruby 1.9.2p290, rvm 1.10.2. Can anyone help me please to solve this problem. Darren Cheng I had a similar issue with running $ gem install rmagick First of all, do you have imagemagick installed? If you're not sure, run $ convert --version If you do, you

Mac Rmagick won&#39;t install with Xcode 4.2

为君一笑 提交于 2019-11-26 15:28:28
问题 I just got a new macbook pro and trying to setup my dev environment. I downloaded xcode 4.2 from the app store and installed it, after this i installed homebrew and RVM. ImageMagick, readline, ruby 1.9.3-head all installed perfectly until i ran bundle update which tried to install rmagick. After a long long time investigating i come down to the conclusion that it can't find libgomp. The output is from gem install rmagick is: $ gem install rmagick Building native extensions. This could take a

ERROR: Error installing rmagick: in Windows with Ruby 2.2

六眼飞鱼酱① 提交于 2019-11-26 14:52:08
问题 I cloned my code from git to my Windows machine and when I run bundle install, I am getting this error: An error occurred while installing rmagick (2.13.4), and Bundler cannot continue. Make sure that gem install rmagick -v '2.13.4' succeeds before bundling. D:\project\MyProject2>gem install rmagick -v '2.13.4' Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. D: