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
0
votes
1 answer

Can't install gem rmagick [Windows 7 64 bit]

I am using carrierwave to upload images to my project, following along with Ryan Bates railscasts here. I am using ruby 1.9.2p290 (2011-07-09) [i386-mingw32], and rails 3.1.0 In the episode it says in order to have use rmagick you have to install…
ruevaughn
  • 1,319
  • 1
  • 17
  • 48
0
votes
1 answer

RMagick: How to check if all pixels in a particular area of the image are transparent?

I would like to create a code from a given image. For example, this image: should get the code 111-111-010. (Suppose it's a png image and all pixels except the banana itself are transparent.) If all pixels in a particular square are transparent,…
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
0
votes
3 answers

CarrierWave and RMagick: Using process :resize_and_pad throwing up nil is not a symbol error

I've created an image uploader and have defined the following version within it version :profile do process :resize_and_pad [100, 100] end When I upload a file, I get the following error message: nil is not a symbol Looking at the full…
John
  • 9,254
  • 12
  • 54
  • 75
0
votes
3 answers

Problems installing RMagick

I know there are already some questions and extensive answers about RMagick for Ruby 1.9.x, but I still have problems installing it. I am working with the Ruby-Aptana Plugin for Eclipse and I have already installed the DevKit. I have tried to…
jeffrey
  • 2,026
  • 5
  • 28
  • 42
-1
votes
1 answer

Magick::ImageMagickError: non-conforming drawing primitive definition `text' @ error/draw.c/RenderMVGContent/4404

This error happened to me using Docker, but production on Heroku was fine. Here is my Dockerfile FROM ruby:3.2.0 RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - RUN apt update -q && apt install -y \ build-essential \ libpq-dev…
Max Paprikas
  • 579
  • 6
  • 16
-1
votes
1 answer

Rails 5 uploading and displaying image

I'm writing an app in which user will be allowed to put filters on image (RMagick). New image is saved and uploaded with carriervawe but it is not available until page gets reloaded. Do you know how to upload and display image without reloading or…
Tezert
  • 1
-1
votes
2 answers

ruby draw color specific pixels from source image to new image

how can i take all the whitish pixels from an image and draw them on to a new image with a new color. the code below is how i would do it with python but the majority of the project has been written in ruby so i am trying to stick with it. from PIL…
-1
votes
3 answers

Carrierwave/RMagick NoMethodError after upgrade to ruby 2.0

I upgraded my app from ruby 1.9.3 to ruby 2.0, keeping most of my gems without upgrade. Everything worked fine, but when I tried to upload an image, I got this error: NoMethodError - undefined method `[]=' for nil:NilClass: …
stefkas
  • 81
  • 1
  • 1
  • 6
-1
votes
1 answer

How do I split an array into a bunch of strings in Ruby?

This method accepts a list of URLs: Magick::ImageList.new("img1url", "img2url", "img3url") I have this string "url1, url2, url3". How can I feed the above method my list as separate arguments? I tried: urls =…
dee
  • 1,848
  • 1
  • 22
  • 34
-1
votes
1 answer

Why is this request taking 10x longer?

I am experimenting with an upload action of a Rails application on my MacOS and a VPS context. On my MacOS I see: Completed 200 OK in 462ms (Views: 0.2ms | ActiveRecord: 19.4ms) However, on the VPS I get: Completed 200 OK in 21762ms (Views: 0.1ms |…
poseid
  • 6,986
  • 10
  • 48
  • 78
-2
votes
1 answer

What gem or external program should I use with Ruby and Linux, to help to choose an image?

My Ruby script chooses a random image from a directory of photos, it then shows the chosen image to me, by simply calling "feh" image viewer. Currently I can't move on to a next photo, if needed: as the photo must suit somewhat to the music which…
Konstantin
  • 2,983
  • 3
  • 33
  • 55
-2
votes
1 answer

Converting a .gif into Separate Frames with Ruby

I was thinking about using Rmagick, does anyone else have a good exp with this program? I have seen some Java scripts that do this but I'm more use to working in Ruby.
mongobongo
  • 171
  • 12
-3
votes
1 answer

A gem to convert a picture into black and white grid

I have to convert a colored picture into a duotone black and white picture. I forced the edges to have good result, but the result isn't good enough. I'm using rMagick with Ruby, but I'm looking for a better gem.
Jérémy JOKE
  • 271
  • 4
  • 15
1 2 3
56
57