dicom/ruby-dicom — Issue #32: Work with mini_magick
Author: rodrigodealer
Created: 2012-01-05 13:44:42+00:00
State: open

I'm using this example:

require 'dicom'
include DICOM
require 'RMagick'
include Magick
obj = DICOM::DObject.new("1478392")
image = obj.image(:level=>[100, 500]).normalize
text = Draw.new
text.fill = 'White'
text.pointsize = 12
text.annotate(image, 0, 0, 12, 30, "Guardiao")
t = Time.now
text.pointsize = 10
text.annotate(image, 0, 0, 8, 45, t.strftime("Processado em %d/%m/%Y"))
image.write("dicom.jpg")

But when I run this script from a Rails app, it crashes /Users/rodrigo/.rvm/gems/ruby-1.9.2-p180@guardiao/gems/dicom-0.9.2/lib/dicom/image_processor_r_magick.rb:65: [BUG] Segmentation fault

How can I use mini_magick and test it if it works?