Questions tagged [rmagick]

RMagick is an interface between the Ruby programming language and the ImageMagick® and GraphicsMagick image processing libraries.

RMagick is an interface between the Ruby programming language and the ImageMagick® and GraphicsMagick image processing libraries.

Questions concerning using ImageMagick® and GraphicsMagick image editing libraries with Ruby should be tagged with rmagick.

853 questions
28
votes
3 answers

Carrierwave - Resizing images to fixed width

I'm using RMagick and want my images to be resized to a fixed width of 100px, and scale the height proportionally. For example, if a user were to upload a 300x900px, I would like it to be scaled to 100x300px.
David
  • 607
  • 1
  • 8
  • 12
28
votes
2 answers

RMagick warning while running server

I am using gem 1.3.7, rails 2.3.5 and ruby 1.8.7 (2008-08-11 patchlevel 72). While starting server i get below warnings. Loading development environment (Rails 2.3.5) /Users/me/.rvm/gems/ruby-1.8.7-p72@mbm/gems/rmagick-2.13.1/lib/RMagick.rb:44:…
ashisrai_
  • 6,438
  • 2
  • 26
  • 42
24
votes
12 answers

Bundle can't install RMagick gem on Mac OSX 10.7

I've installed ImageMagick with ImageMagick installer script https://github.com/maddox/magick-installer. I am on OSX Lion 10.7, using RVM, Ruby 1.9.3p125. The problem seems to be with MagickWand.h here is the complete…
PabloJimeno
  • 448
  • 1
  • 3
  • 7
21
votes
3 answers

Can't install rmagick, pkg-config: command not found

I'm trying to install rmagick on my Mac OS X v10.9 (Mavericks) machine. However. I get this error /usr/local/bin/Magick-config: line 41: pkg-config: command not found /usr/local/bin/Magick-config: line 47: pkg-config: command not…
Minh Tri Pham
  • 861
  • 3
  • 9
  • 18
21
votes
2 answers

RMagick - how do I find out the pixel dimension of an image

How does one find the image width and height in pixels? image.x_resolution and image.y_resolution both return 0 for some reason.
fiiv
  • 1,267
  • 1
  • 8
  • 16
20
votes
4 answers

Mac Rmagick won't install with Xcode 4.2

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…
Danny Hiemstra
  • 1,188
  • 1
  • 9
  • 13
20
votes
6 answers

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

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…
Cojones
  • 2,930
  • 4
  • 29
  • 41
18
votes
10 answers

Rails - Can't install RMagick 2.16.0. Can't find MagickWand.h

I appreciate this question has been asked many times before, however I've tried all available answers to no avail. The error log is as follows: have_header: checking for wand/MagickWand.h... -------------------- no "gcc -E…
Mark
  • 6,112
  • 4
  • 21
  • 46
18
votes
3 answers

Change the color of an image with imagemagick

I want to change the foreground colors of an image using rmagick/imagemagick. To be more specific: I want to convert the black or the white glyphicons-halflings icons(which are included in twitter bootstrap) into darkblue glyphicons-halflings icons.…
17
votes
5 answers

rails convert html to image

I'm looking for a way to convert html tags to a image on the fly... That means, that I want to be able to make a image_tag with a path to a method which returns the image created form html. I was looking for a solution on that, but couldn't come up…
Markus
  • 3,948
  • 8
  • 48
  • 64
17
votes
3 answers

This installation of RMagick was configured with ImageMagick 6.6.9 but ImageMagick 6.7.7-10 is in use

In a rails application, I have this error message : This installation of RMagick was configured with ImageMagick 6.6.9 but ImageMagick 6.7.7-10 is in use. I tried to uninstall and install RMagick as suggested in this post : RMagick complains it was…
Dougui
  • 7,142
  • 7
  • 52
  • 87
17
votes
7 answers

Problem installing RMagick rubygem on Centos 5

I'm having problems installing the RMagick rubygem on Centos 5. I've followed the steps detailed in http://rmagick.rubyforge.org/install2-linux.html but when I try: sudo gem install rmagick the result is: Building native extensions. This could…
Keith Pitty
  • 1,498
  • 1
  • 12
  • 22
16
votes
5 answers

How to deal with memory leaks in RMagick in Ruby?

Im developing web-application with Merb and im looking for some safe and stable image processing library. I used to work with Imagick in php, then moved to ruby and start using RMagick. But there is a problem. Long running scripts causing memory…
Dan Sosedoff
  • 2,869
  • 5
  • 28
  • 34
16
votes
6 answers

RMagick + Rails + Heroku?

I'm trying to figure out how to get rmagick on my app, and then make it work on Heroku?
Elliot
  • 13,580
  • 29
  • 82
  • 118
15
votes
1 answer

rmagick leads to server shutdown

everyone! I was following Railscasts episode #253, using CarrierWave to do image upload. Everything was fine to display the original image, even though the image looked quite big in the browser. I strictly followed Ryan Bates' instructions. But,…
Leo
  • 311
  • 2
  • 11
1
2
3
56 57