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
11
votes
11 answers

Issue with installing ImageMagick and rmagick on Mountain Lion

I am facing issues with installing rmagick in mountain lion. I have installed Xcode 4.4 and developer tools. Still facing this issue. Installing rmagick (2.13.1) with native extensions Unfortunately, a fatal error has occurred. Please report…
Mohit Jain
  • 43,139
  • 57
  • 169
  • 274
10
votes
1 answer

Can't install RMagick with rbenv

I'm using rbenv on my Ubuntu 10.04 server and I already installed ImageMagick, but I can't get RMagick to install successfully. I get the following error message Can't install RMagick 2.13.1. Can't find MagickWand.h Any ideas?
Adam Albrecht
  • 6,680
  • 4
  • 31
  • 35
10
votes
1 answer

RMagick - ImageMagick gives error "no decode delegate for this image format"

The problem occurs when i try to manipulate an image uploaded from sinatra. File.open(params[:file][:tempfile]) do |p| thumb = Magick::Image.read(p) thumb.crop_resized!(75, 75, Magick::NorthGravity) end The uploaded file is a jpeg, form data…
gkaykck
  • 261
  • 1
  • 3
  • 11
10
votes
1 answer

Carrierwave add a watermark to processed images

Im trying to add a watermark to processed images with below code I got from several resources: def watermark manipulate! do |img| logo = Magick::Image.read("#{Rails.root}/assets/images/watermarks/watermark.png").first img =…
10
votes
2 answers

ActiveStorage wont crop variants

I'm migrating my rails app from paperclip to ActiveStorage and it just won't accept the crop argument in a variant this line: @user.image.variant(crop: [180,135]) cause this error: Errno::ENOENT (No such file or directory @ rb_sysopen -…
antpaw
  • 15,444
  • 11
  • 59
  • 88
10
votes
4 answers

Installing RMagick on Mac OS X with MacPorts

With the MacPorts version of ImageMagick 6.4.4 installed, I'm getting an error installing the RMagick gem. /opt/local/bin/ruby extconf.rb update rmagick checking for Ruby version >= 1.8.2... yes checking for /usr/bin/gcc-4.0... yes checking for…
Jason Wadsworth
  • 933
  • 1
  • 10
  • 18
10
votes
1 answer

Ubuntu - cannot install RMagick

How to install the RMagick gem to Ubuntu? I found a few threads here on SO, some of there directly pointed out to the installation on Ubuntu systems, but none of them is working for me. Here is the output that I got if I run sudo gem install…
user984621
  • 46,344
  • 73
  • 224
  • 412
10
votes
1 answer

Allowing users to crop and resize images Ruby on Rails

Sorry for the fairly generic question but I was wondering whether anyone had any recommendations on how to best allow users to crop and edit their own images. What I would like to happen is that when a user uploads their image on my app for the app…
Tom Pinchen
  • 2,467
  • 7
  • 33
  • 53
9
votes
6 answers

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

$ gem install rmagick Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /Users/XXXXXXX/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb checking for…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
9
votes
5 answers

I can't install rmagick gem on windows

I used ruby 1.9.2 and rails 3.0.3. iam trying to install rmagick gem but when i run bundle install I got an error tells me: Installing rmagick (2.12.1) with native extensions c:/Ruby192/lib/ruby/site_ruby /1.9.1/rubygems/installer.rb:529:in `rescue…
Zakwan
  • 1,072
  • 2
  • 11
  • 22
9
votes
3 answers

Error installing Rmagick on Mac OS X

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…
howdy
  • 127
  • 1
  • 2
  • 8
9
votes
3 answers

Create paperclip attachment from rmagick image

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…
guts
  • 381
  • 1
  • 9
  • 22
9
votes
2 answers

Carreirwave - How to have the version name created directly from the saved filename

I'm creating a thumb image for the files that have been uploaded on my app. The image names have a timestamp code in them. When I run recreate_versions the thumb image generated also has the timestamp in it but it uses the current timestamp which…
Rob
  • 1,835
  • 2
  • 25
  • 53
9
votes
5 answers

Can't install Rmagick and Imagemagick on Windows 7

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…
UkraineTrain
  • 469
  • 1
  • 9
  • 21
9
votes
3 answers

Unable to install fileutils Rubygem on ubuntu 14.04 lts

When trying to install fileutils gem I get following output: No package 'MagickCore' found Package MagickCore was not found in the pkg-config search path. Perhaps you should add the directory containing `MagickCore.pc' to the PKG_CONFIG_PATH…
whizcreed
  • 2,700
  • 3
  • 22
  • 35