When I try to make a PNG image using TikZ by using the convert option for the standalone class, I cannot figure out how to make the background transparent.
I seem to recall some years ago that this happened by default; while I could be misremembering, other questions and answers on here seem to back up that memory (e.g. tikzpicture has clear background by default, this recent question stating that the TikZ standalone picture background was clear and asking how to make it white...).
In any case, the default behavior on my machine currently seems to be a white background.
Using a minimal example,
\documentclass[convert={density=300},tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw [ultra thick] (0,0) circle (2.5cm);
\end{tikzpicture}
\end{document}
I get a circle with a white background:
How can I make the background transparent?
It may be that software version details matter; I have the following setup:
- OS: Ubuntu 21.10
- LaTeX distribution: TeX Live 2020
- (can provide other details on request, not sure what else to add)

GraphicsMagick 1.4. On my system I have:convert -version Version: ImageMagick 7.1.0-2 Q16 x86_64 2021-06-25 https://imagemagick.org. First step is to make it work in a terminal - see https://tex.stackexchange.com/a/618059/8650 – hpekristiansen Mar 13 '22 at 21:43GraphicsMagickandImageMagick. InstallingGraphicsMagickwas not a deliberate choice but was chosen to satisfy a dependency by some other program I suppose. I will try to investigate this difference, thanks for the tip – duckmayr Mar 13 '22 at 21:47