Skip to content

Try to convert PNG to SVG image file, but the result has one dash-line cross #21

@zydjohnHotmail

Description

@zydjohnHotmail

Hello:
I have tried to convert some PNG files to SVG files, using the code:
convert-png-to-svg.cs
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;

// load the PNG file in an instance of Image
using (var image = Aspose.Imaging.Image.Load(@"template.png"))
{
// create an instance of SvgOptions
var options = new Aspose.Imaging.ImageOptions.SvgOptions();
// save PNG as a SVG
image.Save(@"output.svg", options);

}
It works, but the converted SVG file has one big dash-line cross for the entire image.
Let me know if I missed anything, do I have to buy some license, just for personal usage for about 10 images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions