Failed to Save PNG to SVG/EMF

Hi,

I am trying to convert png to EMF or SVG format but failed. I am using below code snippet

ImageOptionsBase optionsBase = new SvgOptions();

using (Image image = Image.Load(inFilePath))
{
image.Save(outPath, optionsBase);
}

Looking forward to hear from you.

@naeem.akram,

I have observed the issue shared by you and request you to please try using Aspose.Imaging for .NET 19.12 on your end first. In case there is still an issue then please share the source file reproducing issue on your end. We will be glad to help you further.

@mudassir.fayyaz,

I am already using latest version of Aspose.Imaging (19.12). Please find attached,
download.png (1.8 KB) file.

@naeem.akram,

I have observed the issue shared and a ticket with ID IMAGINGNET-3675 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.

@naeem.akram

Can you please try using the following sample code using latest Aspose.Imaging for NET 20.12 on your end and share your feedback if there is still an issue.

using (Image image = Image.Load("download.png"))
{
    ImageOptionsBase optionsBase = new SvgOptions();
    optionsBase.VectorRasterizationOptions = new SvgRasterizationOptions
    {
        PageWidth = image.Width,
        PageHeight = image.Height
    };

    image.Save("download.png.svg", optionsBase);
}