On Wed, 17 Nov 2004 00:33:17 +0900 Martin Pirker <crf / sbox.tu-graz.ac.at> 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öäer http://www.brian-schroeder.de/