[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

using mini_magick

Jonathan Denni

2/28/2007 3:08:00 AM

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

5 Answers

Mat Schaffer

2/28/2007 3:43:00 AM

0

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?

First use:
require 'rubygems'

Jonathan Denni

2/28/2007 4:26:00 AM

0

Mat Schaffer wrote:
> First use:
> require 'rubygems'

yay! thanks, no more error :)

now my other problem: how do I use mini_magick? the MiniMagick rubyforge
page points me to http://www.imagemagick.org/script/m... 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-....

Mat Schaffer

2/28/2007 4:32:00 AM

0


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

> Mat Schaffer wrote:
>> First use:
>> require 'rubygems'
>
> yay! thanks, no more error :)
>
> now my other problem: how do I use mini_magick? the MiniMagick
> rubyforge
> page points me to http://www.imagemagick.org/script/m... but I
> don't see how that translates into ruby syntax. typing including
> "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

Jonathan Denni

2/28/2007 6:56:00 AM

0

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/...
(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-....

Peña, Botp

2/28/2007 8:09:00 AM

0

On Behalf Of Jonathan Denni:
# 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)
# that's what's on here:
# http://www.gemjack.com/gems/mini_magick-1.2.0/...
# (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