Using mini_magick

thanks for all the help… I’m making progress…

I installed rubygems, and used that to install mini_magick. I tried
using

require “mini_magick”

but it returned

ruby.rb:1:in `require’: No such file to load – mini_magick (LoadError)
from ruby.rb:1

what am I missing? and how do I use mini_magick to resize images?

On Feb 27, 2007, at 10:07 PM, Jonathan D. wrote:

what am I missing? and how do I use mini_magick to resize images?

First use:
require ‘rubygems’

Mat S. wrote:

First use:
require ‘rubygems’

yay! thanks, no more error :slight_smile:

now my other problem: how do I use mini_magick? the MiniMagick rubyforge
page points me to ImageMagick – Command-line Tools: Mogrify but I
don’t see how that translates into ruby syntax. typing including
“mogrify -resize 50% rose.jpg” is definitely not working.

On Feb 27, 2007, at 11:26 PM, Jonathan D. wrote:

“mogrify -resize 50% rose.jpg” is definitely not working.
Run gem_server on the command line then point your web browser at:
http://localhost:8808/doc_root/mini_magick-1.2.0/rdoc/index.html
(Or start at localhost:8808 if your version of mini_magick is different)

It looks like the mini_magick docs are pretty sparse though.
-Mat

Mat S. wrote:

Run gem_server on the command line then point your web browser at:
http://localhost:8808/doc_root/mini_magick-1.2.0/rdoc/index.html
(Or start at localhost:8808 if your version of mini_magick is different)

It looks like the mini_magick docs are pretty sparse though.
-Mat

ooo
that’s what’s on here:
http://www.gemjack.com/gems/mini_magick-1.2.0/index.html
(can I use html links in this forum?)

so… I see this… but I’m still lost. Do I have to install rmagick or
something for mini_magick to work?

I’m rather new to programming, and have never used gems before

thanks so much for your help

On Behalf Of Jonathan D.:

Mat S. wrote:

> Run gem_server on the command line then point your web browser at:

> http://localhost:8808/doc_root/mini_magick-1.2.0/rdoc/index.html

> (Or start at localhost:8808 if your version of mini_magick is

different)

that’s what’s on here:

http://www.gemjack.com/gems/mini_magick-1.2.0/index.html

(can I use html links in this forum?)

yes

so… I see this… but I’m still lost. Do I have to install

rmagick or something for mini_magick to work?

just install imagemagick.
iianm, minimagick is just a wrapper to imagemagick’s command line
“mogrify”

kind regards -botp