MiniMagick Problems on 64-bit OS.

A

Alex DeCaria

I'm running the following 5 lines of ruby code.

*******************************************
require 'mini_magick'
include MiniMagick
dir = "C:\\users\\alex\\pictures\\"
pic = "#{dir}\\Flowers006.jpg"
image = Image.from_file(pic)

I get a host of errors, which are:

C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:154:in
'`': Invalid argument - identify
C:/Users/Alex/AppData/Local/Temp/mini_magick4704-0. 2>&1 (Errno::EINVAL)
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:154:in
`run_command'
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:47:in
`initialize'
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:28:in
`new'
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:28:in
`from_blob'
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:34:in
`block in open'
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:33:in
`open'
from
C:/Ruby19/lib/ruby/gems/1.9.1/gems/mini_magick-1.2.5/lib/mini_magick.rb:33:in
`open'
from image.rb:7:in `<main>'


I am running the 64-bit version of Windows 7.

The file and directories definitely exist, and the same code works fine
on my Windows XP 32-bit installation.

Is it possible that I can't run mini_magick on a 64-bit OS? The
mini_magick gem installed fine, with no errors.

-- Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top