Converting from jpg/png to svg gives nothing content in converted svg, when i run the code on my local environment?

Dear Aspose,

This was the issue I posted on Github: i am wondering why converting from jpg/png to svg gives nothing content in converted svg, when i run the code on my local environment? · Issue #37 · aspose-words/Aspose.Words-for-Python-via-.NET · GitHub

Now I will add more information about this issue. Thanks.

The Input.jpg i used for converting was:
Input.png (2.1 KB)
The converted result (a blank svg) was shown below: (Not allowed to upload svg, so just a screenshot in png.)
image.png (31.2 KB)
And i tested this code on my another pc, still does not work.

The environment of my main pc is VSCode, Python 3.8.5. There’s no error reported during the executing but given blank svg.

Thanks so much!

@Matthew_Su I have tested the scenario on my side and cannot reproduce the problem. Here is code I have used for testing:

doc = aw.Document()
builder = aw.DocumentBuilder(doc)

builder.insert_image("C:\\Temp\\Input.png")

# Specify export_embedded_images option to embed images into SVG file.
svg_save_options = aw.saving.SvgSaveOptions()
svg_save_options.export_embedded_images = True

doc.save("C:\\Temp\\out.svg", svg_save_options)

As you can see I have specified additional save options using SvgSaveOptions.

Here is SVG produced on my side: out.zip (2.6 KB)