I'm using the following script to generate an scaled up PNG version of an SVG.
<img src="barrington.svg" width="418" height="188"/> //comparison
<?php
$im = new Imagick();
$im->setBackgroundColor(new ImagickPixel('transparent'));
$svg = file_get_contents("barrington.svg");
$im->setresolution(144,144);
$im->readImageBlob($svg);
$im->setImageFormat("png32");
echo '<img src="data:image/png32;base64,' . base64_encode($im) . '" />'
?>
When displayed/compared to the SVG version at the same size, the PNG has jagged edges around some of the image.
(see image here: https://i.stack.imgur.com/WGKIH.png)
I'm using ImageMagick (if it wasn't already obvious) and would like to fix this problem.
EDIT: To clarify, for my purposes I need a PNG and not an SVG. This isn't an issue of fixing compatibility in browsers or something.