From: "Brian Schröder" Date: 2004-11-17T01:58:26+09:00 Subject: Re: image creation On Wed, 17 Nov 2004 00:33:17 +0900 Martin Pirker wrote: > Hi... > > Im pondering how to best create an image from a Ruby script. > 1) a x*y size String comes to mind > easy manipulation > 2) dump it out to a .pgm file > 3) call pgm2jpg, pgm2png or something like that > 4) serve link to file > > For small images a "keep in memory" and call libjpg directly approach > comes to mind, for large images maybe via mmap? > > Anyone ever did such things, pointer to example code? > > thanks, > Martin > Imagemagick has a ruby binding and allows to do all kind of stuff. See: http://rmagick.rubyforge.org/ Regards, Brian -- Brian Schr�der http://www.brian-schroeder.de/