This tutorial let you compile your tex into png with a single command, the png produced will have transparent background.
you should have Tex compiler installed on your machine, read this blog post to understand how. Make sure when you type “latex” and “dvipng” command, it does not display “command not found”.
I have written a simple script to do the job so you don’t have to remember the command parameters. You can find the GitHub repo here.
# Install tex2png to your bin
$ git clone https://github.com/madcoda/tex2png-simple-shell.git
$ cd tex2png-simple-shell/
$ sudo cp tex2png.sh /usr/local/bin/tex2png
# Use it directly
$ tex2png My_Thesis 300