Nothing's wrong with the PNG as far as I'm aware, but I'm getting some wacky behavior from it (MWE below). The problem goes away when I remove -transparent white from the ImageMagick options.
MWE
% arara: xelatex: {shell: yes}
\begin{filecontents*}{heart.svg}
<?xml version="1.0" encoding="utf-8"?>
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(26.37104, 0, 0, 24.680786, 232.422821, 233.229111)" style="fill: rgb(223, 0, 0); fill-opacity: 1;">
<path style="fill:#df0000;fill-opacity:1" d="M 3.676,-9 C 0.433,-9 0,-5.523 0,-5.523 0,-5.523 -0.433,-9 -3.676,-9 -5.946,-9 -8,-7.441 -8,-4.5 -8,-0.614 -1.4208493,3.2938141 0,9 1.35201,3.2985969 8,-0.614 8,-4.5 8,-7.441 5.946,-9 3.676,-9 z"/>
</g>
</svg>
\end{filecontents*}
\immediate\write18{convert -units PixelsPerInch -size 2000x2000 heart.svg -density 600 -trim -transparent white heart.png}
\documentclass{article}
\usepackage{graphicx}
\newcommand\CHeart[1][]{\includegraphics[width=\linewidth,#1]{heart.png}}
\begin{document}
\CHeart
\end{document}
Output: (blank pdf sometimes, other times…)
Version: ImageMagick 6.9.6-7 Q16 x86_64 2016-12-07 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib cairo fontconfig freetype jng jpeg ltdl lzma png rsvg tiff xml zlib
Using -background none before the SVG (instead of -transparent white before the PNG) gets me this lovely 'modern art':




heart.svghas the same contents as in the TeX source.heart.pngis correctly converted, checked by file date and image viewer. The correctheart.pngis found and included by LaTeX, checked by inspecting the.logfile. – Heiko Oberdiek Dec 09 '16 at 04:21