Is there a way to produce an image file (png) wihout producing first a pdf file? I'm useing the standalone class
\documentclass[preview, border=1pt, convert={outext=.png}]{standalone}
I am able to produce a png file with the command:
pdflatex --shell-escape formula.tex && convert -resize 50% formula.png formula.png
but I don't like to write a pdf file each time on the disk, because I need only the png file. Is there a better alternative?