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://www.filedropper.com/svgphototssp ... elayout100
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"));
}
I read the embedded jpeg image data from this SVG file, decoded from base 64, and saved as .jpg file, and I found that it was a valid .jpg file.
Thank you for the help in advance!