I'm using the standalone class to produce an image. I'd like to have the background transparent instead of white. I'm compiling with:
pdflatex --shell-escape formula.tex
This is the code:
\documentclass[preview, border=0.5 pt, convert=size=1080x800,outext=.png}]{standalone}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{braket}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{equation*}
n \cdot m \stackrel{\text{def}}{=}\begin{cases}
\underbrace{n+n+\ldots+n}_\text{m \text{volte}} & \text{se } m>0 \\
0 & \text{se } m=0.
\end{cases}
\end{equation*}
\end{document}
I'm using
GraphicsMagick 1.4 snapshot-20190423 Q16 http://www.GraphicsMagick.org/ Copyright (C) 2002-2019 GraphicsMagick Group. Additional copyrights and licenses apply to this software.
In the past when I had ImageMagick installed on my system it has always worked.