SVG files can contain embedded images in jpeg or png format. I found that during the conversion only embedded images in jpeg format disappear.
Is it a bug, or jpeg images in SVG files are not supported? Is there a workaround for this issue?
I use the latest version of Magick.NET (v7.0.0.0) with .NET 4.5.
I tried to convert this SVG file to Jpeg:
http://dev.w3.org/SVG/profiles/1.1F2/te ... e-04-t.svg
I use the following code for the conversion:
Code: Select all
MagickReadSettings readSettings = new MagickReadSettings()
{
Format = MagickFormat.Svg
};
using (MagickImage image = new MagickImage(svgFilePath, readSettings))
{
image.Format = MagickFormat.Jpeg;
image.Write(Path.ChangeExtension(svgFilePath, "jpg"));
}