TeX to image over command line
Is there a script for converting LaTeX math formulae (not document) to PNG, GIF or JPEG?
You can use TeX to GIF or PNG for this.
I really like Tex2im because:
It requires a working LaTeX installation and ImageMagick.