When converting attached SVG to PNG using Aspose.Imaging (see code below) the result is a wrong PNG-File.
Issue seems to be the contained path
to display the small info-icon.
The SVG: test2.zip (1.1 KB)
The sourcecode used to convert:
com.aspose.imaging.fileformats.svg.SvgImage image = (com.aspose.imaging.fileformats.svg.SvgImage) com.aspose.imaging.Image.load(inputStream);
com.aspose.imaging.imageoptions.PngOptions options = new com.aspose.imaging.imageoptions.PngOptions();
final File pngFile = File.createTempFile("SVGImage", ".png");
OutputStream pngFileOutputStream = null;
try {
pngFileOutputStream = new FileOutputStream(pngFile);
image.save(pngFileOutputStream, options);
return new AutoDeleteFileInputStream(pngFile);
} finally {
FailSafeIO.close(pngFileOutputStream);
pngFile.delete();
}
The resulting PNG file: SVGImage6363834545642884571.png (289 Bytes)