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?

···

--
Posted via http://www.ruby-forum.com/.

First use:
require 'rubygems'

···

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

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?

Mat Schaffer 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.

···

--
Posted via http://www.ruby-forum.com/\.

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

···

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

Mat Schaffer 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.

Mat Schaffer 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

···

--
Posted via http://www.ruby-forum.com/\.

# > 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

···

On Behalf Of Jonathan Denni: # Mat Schaffer wrote: