Free Support Forum - aspose.com

EMF to SVG conversion saves as embedded PNG data


#1

Hello,

I am attempting to convert an EMF file to SVG, but it appears like it saves it as embedded PNG within the SVG file (see attached files).

Dim image = Aspose.Imaging.Image.Load("out.emf")
Dim emfRasterizationOptions As New EmfRasterizationOptions()
emfRasterizationOptions.PageWidth = image.Width
emfRasterizationOptions.PageHeight = image.Height
Dim opt As New SvgOptions() With {.VectorRasterizationOptions = emfRasterizationOptions}
image.Save("out.svg", opt)

Sample.zip (3.5 KB)

It doesn’t seem like it does a true conversion from one vector format to another (EMF to SVG).

What could I be doing wrong?

Thanks.


#2

@Zirak,

I have observed your comments. Can you please check attachment and explain your statement given below in more details.

Also please share the desired SVG if it is other than Aspose.Imaging.


#3

I found out why it wasn’t converting from EMF to SVG, it appears like if you don’t have a license set, the SVG image always got saved as a PNG embedded image with a watermark.


#4

@Zirak,

We are glad to know that things started working on your end. Please feel free to contact us if there is any issue.