I just installed ImageMagick 6.9.3 on OS X 10.11.4 using brew, along with the RMagick ruby gem so I can learn how to use it for a project. Following along with one of the examples in the RMagick docs (
https://rmagick.github.io/usage.html#drawing_on), I call `circle = Magick::Draw.new`, which returns an error:
Can anyone give me an explanation of what this error means and how I can fix it? A friend of mine suggested that I may be missing one of the dependencies that ImageMagick uses for drawing, but I'm not sure how to dig any deeper than that. I'm not sure if this forum is the best place to ask this question since RMagick is jut a wrapper/interface for ImageMagick, but I've had very little success getting help elsewhere with this issue and would really like to be able to use ImageMagick in a ruby app I'm building for a project. Thanks!
In an IRB session, here are the exact steps I took:
Code: Select all
require 'RMagick'
canvas = Magick::ImageList.new
canvas.new_image(250, 250, Magick::HatchFill.new('white', 'gray90'))
circle = Magick::Draw.new