Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Which Image Generation Library?

Reply
Thread Tools

Which Image Generation Library?

 
 
Winter Ayars
Guest
Posts: n/a
 
      10-05-2007
I need to create a small program that generates images and "animations"
(i can cheat on the animation) of Petri nets. Something like the
wikipedia page's (http://en.wikipedia.org/wiki/Petri_net) examples, but
automatically generated based on simple input.

I'm thinking about doing this in Ruby (with Gnome 2) but don't know what
image generation/manipulation tool would be best to use or if i should
go with something else. Does someone have a suggestion? Ideally
something with some good documentation. It doesn't have to be
sophisticated, just enough to algorithmically generate pictures. I'm
planning on using Gnome 2 as well, if this makes a difference.

Thanks in advance!
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Alex Gutteridge
Guest
Posts: n/a
 
      10-05-2007
On 5 Oct 2007, at 10:51, Winter Ayars wrote:

> I need to create a small program that generates images and
> "animations"
> (i can cheat on the animation) of Petri nets. Something like the
> wikipedia page's (http://en.wikipedia.org/wiki/Petri_net) examples,
> but
> automatically generated based on simple input.
>
> I'm thinking about doing this in Ruby (with Gnome 2) but don't know
> what
> image generation/manipulation tool would be best to use or if i should
> go with something else. Does someone have a suggestion? Ideally
> something with some good documentation. It doesn't have to be
> sophisticated, just enough to algorithmically generate pictures. I'm
> planning on using Gnome 2 as well, if this makes a difference.


Cairo can make nice figures and there are Ruby bindings. The bindings
have little (no?) documentation, but Cairo itself is very well
documented and there are good docs for the Python bindings which are
almost identical.

I'd post links, but Google is your friend really.

Alex Gutteridge

Bioinformatics Center
Kyoto University



 
Reply With Quote
 
 
 
 
M. Edward (Ed) Borasky
Guest
Posts: n/a
 
      10-05-2007
Alex Gutteridge wrote:
> On 5 Oct 2007, at 10:51, Winter Ayars wrote:
>
>> I need to create a small program that generates images and "animations"
>> (i can cheat on the animation) of Petri nets. Something like the
>> wikipedia page's (http://en.wikipedia.org/wiki/Petri_net) examples, but
>> automatically generated based on simple input.
>>
>> I'm thinking about doing this in Ruby (with Gnome 2) but don't know what
>> image generation/manipulation tool would be best to use or if i should
>> go with something else. Does someone have a suggestion? Ideally
>> something with some good documentation. It doesn't have to be
>> sophisticated, just enough to algorithmically generate pictures. I'm
>> planning on using Gnome 2 as well, if this makes a difference.

>
> Cairo can make nice figures and there are Ruby bindings. The bindings
> have little (no?) documentation, but Cairo itself is very well
> documented and there are good docs for the Python bindings which are
> almost identical.
>
> I'd post links, but Google is your friend really.
>
> Alex Gutteridge
>
> Bioinformatics Center
> Kyoto University
>
>
>
>

I've seen quite a few Petri net animations on the web -- perhaps you
could grab one of those and just do the Ruby scripting.

 
Reply With Quote
 
John Joyce
Guest
Posts: n/a
 
      10-05-2007

On Oct 4, 2007, at 10:47 PM, M. Edward (Ed) Borasky wrote:

> Alex Gutteridge wrote:
>> On 5 Oct 2007, at 10:51, Winter Ayars wrote:
>>> I need to create a small program that generates images and
>>> "animations"
>>> (i can cheat on the animation) of Petri nets. Something like the
>>> wikipedia page's (http://en.wikipedia.org/wiki/Petri_net)
>>> examples, but
>>> automatically generated based on simple input.
>>>
>>> I'm thinking about doing this in Ruby (with Gnome 2) but don't
>>> know what
>>> image generation/manipulation tool would be best to use or if i
>>> should
>>> go with something else. Does someone have a suggestion? Ideally
>>> something with some good documentation. It doesn't have to be
>>> sophisticated, just enough to algorithmically generate pictures. I'm
>>> planning on using Gnome 2 as well, if this makes a difference.

>> Cairo can make nice figures and there are Ruby bindings. The
>> bindings have little (no?) documentation, but Cairo itself is very
>> well documented and there are good docs for the Python bindings
>> which are almost identical.
>> I'd post links, but Google is your friend really.
>> Alex Gutteridge
>> Bioinformatics Center
>> Kyoto University

> I've seen quite a few Petri net animations on the web -- perhaps
> you could grab one of those and just do the Ruby scripting.
>

You could do it with RMagick, it is the Ruby lib for ImageMagick. It
can handle vector art and raster art. It has quite good documentation
too. Not sure about animation or interactivity, but you could do that
using one of the game oriented libs like Gosu or Ruby/SDL or RubyGame.

In the end though, Javascript might be a lot easier to just program
an animation, you could then simply use any HTML view for display
(web browser). That said, you might look into Scriptaculous or
Prototype, the Ruby bound Javascript libraries that are commonly used
in Ruby on Rails for eyecandy.

 
Reply With Quote
 
Winter Ayars
Guest
Posts: n/a
 
      10-05-2007
John Joyce wrote:
> In the end though, Javascript might be a lot easier...


I was thinking about Javascript, although i sort of wanted to stay away
from that. Maybe i should reconsider...

Anyway, thanks for the advice everyone. I'll look into these things.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
William Rutiser
Guest
Posts: n/a
 
      10-05-2007
Winter Ayars wrote:
> I need to create a small program that generates images and "animations"
> (i can cheat on the animation) of Petri nets. Something like the
> wikipedia page's (http://en.wikipedia.org/wiki/Petri_net) examples, but
> automatically generated based on simple input.
>
> I'm thinking about doing this in Ruby (with Gnome 2) but don't know what
> image generation/manipulation tool would be best to use or if i should
> go with something else. Does someone have a suggestion? Ideally
> something with some good documentation. It doesn't have to be
> sophisticated, just enough to algorithmically generate pictures. I'm
> planning on using Gnome 2 as well, if this makes a difference.
>
> Thanks in advance!
>

Look at Graphviz. It may do exactly what you want, at least if you
aren't too picky about layout and graphic conventions.

http://en.wikipedia.org/wiki/Graphviz

http://graphviz.org/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microcontrollers: which one ? which language ? which compiler ? The Jesus of Suburbia NZ Computing 2 02-11-2006 06:53 PM
Dynamic Image Generation Service VB 1.1 =?Utf-8?B?cGJi?= ASP .Net 0 02-15-2005 05:49 PM
Dynamic Image Generation using Mobile Image Control Waverider ASP .Net Mobile 1 09-21-2004 07:59 PM
Need help with a Dynamic Image Generation Service VB 1.1 (similar to 2.0) moondaddy ASP .Net 3 07-01-2004 12:25 AM
HTML Generation (Next Generation CGI) John W. Long Ruby 4 11-24-2003 04:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57