Ruby, Windows, and PNG creation

A

Aaron Dalton

I am running Ruby in Windows (not via Cygwin.) How can I generate PNG
files (or GIF or JPG files for that matter) in my Ruby scripts? Ruby-GD
requires compilation, even if I have the native Windows GD dlls
available. I *could* run Ruby under Cygwin but I'm trying to avoid that
if possible. I am new to Ruby and am not sure where to dig. RAA didn't
turn up anything I could see.

Your help is greatly appreciated.
Aaron
 
S

Stephan Kämper

Aaron said:
I am running Ruby in Windows (not via Cygwin.) How can I generate PNG
files (or GIF or JPG files for that matter) in my Ruby scripts? Ruby-GD
requires compilation, even if I have the native Windows GD dlls
available. I *could* run Ruby under Cygwin but I'm trying to avoid that
if possible. I am new to Ruby and am not sure where to dig. RAA didn't
turn up anything I could see.

You could, for example, dig for RMagick: http://rmagick.rubyforge.org/

When looking for Ruby stuff, libs app or whatever, rubyforge is a good
place to start looking. And the RAA is, too.

HTH
Happy rubying

Stephan
 
A

Aaron Dalton

Stephan said:
You could, for example, dig for RMagick: http://rmagick.rubyforge.org/

When looking for Ruby stuff, libs app or whatever, rubyforge is a good
place to start looking. And the RAA is, too.

HTH
Happy rubying

Stephan

Oooo! I didn't know ImageMagick could draw too. Thanks for the tip.
It looks like it will work fine.

Thanks for your time!
Aaron
 
T

Tim Hunter

Aaron said:
Oooo! I didn't know ImageMagick could draw too. Thanks for the tip.
It looks like it will work fine.
Aaron, if you want to use RMagick for drawing, check out
http://rvg.rubyforge.org. It's an pure-Ruby add-on library for RMagick that
provides a higher-level drawing API. It's still alpha but very reliable and
I'm working on it almost every day. When it reaches 1.0.0 I'll make it part
of the RMagick package.
 

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

Forum statistics

Threads
474,166
Messages
2,570,907
Members
47,448
Latest member
DeanaQ4445

Latest Threads

Top