From: "Stephan Kämper" Date: 2004-11-17T01:58:21+09:00 Subject: Re: image creation 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? When I did some image manipulation I used RMagick/ImageMagick. http://rmagick.rubyforge.org/index.html http://www.imagemagick.org/index.html? I had some very plain text files, with y lines and x characters in each line. The chars where limited to single letters indicating red, blue, green, white, black etc. colours. Stephan