I'm trying to depict a sphere with shading
\documentclass[tikz]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}[scale = 2.5]
\def\spradius{1}
% draws a shaded sphere
\shade[ball color = lightgray, opacity = 0.5] (0,0,0) circle (\spradius cm);
\end{tikzpicture}
\end{document}
After compiling I have a next pdf image

But then I run a convert to png
magick convert -density 600 -depth 24 -quality 100 .pdf .png
So those black lines become apparent.
What am I doing wrong?


