SVG convert to PNG gives white PNG


#1

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)


#2

@orgavision,

I have observed the issue shared by you and an issue with ID IMAGINGJAVA-1395 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.