TeX to image over command line
Is there a script for converting LaTeX math formulae (not document) to PNG, GIF or JPEG?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
I really like Tex2im because:
It requires a working LaTeX installation and ImageMagick.