using mini_magick

J

Jonathan Denni

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?
 
M

Mat Schaffer

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'
 
M

Mat Schaffer

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/mogrify.php 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
 
J

Jonathan Denni

Mat said:
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
 
P

Peña, Botp

T24gQmVoYWxmIE9mIEpvbmF0aGFuIERlbm5pOg0KIyBNYXQgU2NoYWZmZXIgd3JvdGU6DQojID4g
UnVuIGdlbV9zZXJ2ZXIgb24gdGhlIGNvbW1hbmQgbGluZSB0aGVuIHBvaW50IHlvdXIgd2ViIGJy
b3dzZXIgYXQ6DQojID4gaHR0cDovL2xvY2FsaG9zdDo4ODA4L2RvY19yb290L21pbmlfbWFnaWNr
LTEuMi4wL3Jkb2MvaW5kZXguaHRtbA0KIyA+IChPciBzdGFydCBhdCBsb2NhbGhvc3Q6ODgwOCBp
ZiB5b3VyIHZlcnNpb24gb2YgbWluaV9tYWdpY2sgaXMgZGlmZmVyZW50KQ0KIyB0aGF0J3Mgd2hh
dCdzIG9uIGhlcmU6DQojIGh0dHA6Ly93d3cuZ2VtamFjay5jb20vZ2Vtcy9taW5pX21hZ2ljay0x
LjIuMC9pbmRleC5odG1sDQojIChjYW4gSSB1c2UgaHRtbCBsaW5rcyBpbiB0aGlzIGZvcnVtPykN
Cg0KeWVzDQoNCiMgc28uLiBJIHNlZSB0aGlzLi4uIGJ1dCBJJ20gc3RpbGwgbG9zdC4gRG8gSSBo
YXZlIHRvIGluc3RhbGwgDQojIHJtYWdpY2sgb3Igc29tZXRoaW5nIGZvciBtaW5pX21hZ2ljayB0
byB3b3JrPw0KDQpqdXN0IGluc3RhbGwgaW1hZ2VtYWdpY2suDQppaWFubSwgbWluaW1hZ2ljayBp
cyBqdXN0IGEgd3JhcHBlciB0byBpbWFnZW1hZ2ljaydzIGNvbW1hbmQgbGluZSAibW9ncmlmeSIN
Cg0Ka2luZCByZWdhcmRzIC1ib3RwDQo=
 

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
474,234
Messages
2,571,180
Members
47,813
Latest member
RustyGary3

Latest Threads

Top