M
Martin Pirker
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
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