Texgd is fed by environment variables containing the input formula, the filename of a tex header, and some other extra informations. it outputs quickly and nicely a png file with the rendered formula, and leaves as a side effect some reusable tex fonts in a configurable directory.