rmagick

Can't install RMagick 0.0.0. Can't find Magick-config

柔情痞子 提交于 2019-12-21 03:58:37
问题 I'm running a debian server and upgraded all packages after quite a while ( apt-get update , apt-get upgrade , apt-get distro-upgrade ). Then rmagick didn't work anymore becuase imagemagick was updated. So I ran: gem uninstall rmagick bundle install Then I got this: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/local/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 0.0.0. Can

Can't install Rmagick and Imagemagick on Windows 7

℡╲_俬逩灬. 提交于 2019-12-20 20:01:40
问题 when I run gem install rmagick-2.13.1.gem from the directory in which rmagick-2.13.1.gem is I get an Error saying that it failed to build gem native extension, below which it says c:/Ruby192/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5 ... yes Unable to get Imagemagick version ***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. From what I know reading the answers to

Resize existing images to new style in paperclip & RMagick

我与影子孤独终老i 提交于 2019-12-20 08:01:46
问题 I've been using paperclip to upload and auto-resize photos in my Rails app, and I love it. Only problem is about every other month my crazy manager decides he wants a new size to display the photos in. So I add a new style in my Photo model and all is good for new photos, but the pre-existing photos are now a problem. Now that I'm starting to have more than a few photos to deal with I need a programmatic way to resize existing photos. Perhaps there is some paperclip trick for such a thing? I

ImageMagick with VS2012

余生长醉 提交于 2019-12-20 04:19:59
问题 First thanks a lot for reading my thread. I am trying to use ImageMagick with VS2012 on Windows 7 64-bit for image rotation. Here is what I did: Download ImageMagick for windows, and unzip it. Go to \ImageMagick-6.8.8\VisualMagick\configure\ folder, open configure.dsw in VS2012, and build it. It was successful. open configure.exe in \ImageMagick-6.8.8\VisualMagick\configure\, and click "next" -> "finish" with default settings. After step 3, an VisualDynamicMT.sln is generated in \ImageMagick

How to install rmagick gem on Windows?

冷暖自知 提交于 2019-12-19 06:03:00
问题 How do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don't know where to look to fix these errors. C:\RailsInstaller\ImageMagick-6.8.2-Q16>ruby -v ruby 1.9.3p125 (2012-02-16) [i386-mingw32] C:\RailsInstaller\ImageMagick-6.8.2-Q16>gem -v 1.8.16 C:\RailsInstaller\ImageMagick-6.8.2-Q16>path=%PATH%;C:\RailsInstaller\ImageMagick-6.8.2-Q16 C:\RailsInstaller\ImageMagick-6.8.2-Q16>identify

Create paperclip attachment from rmagick image

旧城冷巷雨未停 提交于 2019-12-18 23:16:05
问题 I have a problem to find a way to save an image created with RMagick in a paperclip attachment. imageList = Magick::ImageList.new imageList.new("images/apple.gif", "images/overlay.png") ... picture = imageList.flatten_images I am in a model that have an attached file has_attached_file :picture, :url => ..., :path => ... and i just want my image returned by imageList.flatten_images to be saved as the picture of my model. Does anyone know how to do it easily please? thanks 回答1: Let's see if

Getting first image in gif using carrierwave

扶醉桌前 提交于 2019-12-18 16:51:20
问题 Im using carrier wave to upload gifs which works just fine, the problem comes when i try to generate the thumb version and converting the gif into a jpeg with only the first image in the gif as the thumb, i get an error: LocalJumpError in ImagesController#create no block given (yield) app/controllers/images_controller.rb:21:in `new' app/controllers/images_controller.rb:21:in `create' Request Parameters: {"utf8"=>"✓", "authenticity_token"=>"lPEjP1WtPxFdizL2/FAWGHzOZPtecb5nKzKO8dg5ZdE=", "image

RMagick complains it was configured with a different version of ImageMagick

非 Y 不嫁゛ 提交于 2019-12-18 10:39:16
问题 I am getting following error while running local script/server of my Rails project: This installation of RMagick was configured with ImageMagick 6.6.1 but ImageMagick 6.4.5 is in use. (RuntimeError) Running identify --version shows the following: Version: ImageMagick 6.6.1-10 2010-05-21 Q8 http://www.imagemagick.org So, my question is how and where should I make changes to work it fine; I have already reinstalled ImageMagick but that didn't work. 回答1: the same thing happened to me but the

Installing RMagick gem — Can't find MagickWand.h

时光毁灭记忆、已成空白 提交于 2019-12-18 04:02:08
问题 I am installing the rmagick gem on OSX 10.6.8, using gem install rmagick , and I am getting the following error 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. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib -

RMagick: scale and resize image for thumbnail

时光怂恿深爱的人放手 提交于 2019-12-14 00:37:26
问题 I want to resize/scale an image. The originals have not the same dimensions like 300x200 or 512x600. I want to resize the image to 100x100 but DONT crop anything from the image or change ratio. Ideally the image will be first scale the long edge to 100 (aspect ratio) and then fill up the smaller edge with white. .---------. |- - - - -| | IMAGE | |- - - - -| '---------' I dont use Paperclip or Rails, just RMagick. 回答1: I've done it with merging the resized image with a new 100x100 image. Thats