using Aspose.Imaging; using System; using System.IO; using System.Text; using System.Collections.Generic; //You can get all image templates from https://github.com/aspose-imaging/Aspose.Imaging-for-.NET/blob/master/Examples/Data/Templates.zip //After download archive please unpack it and replace templatesFolder variable path with your path to unpacked archive folder string templatesFolder = @"c:\Users\USER\Downloads\templates\"; // Load the wmf file in an instance of Image using (var image = Aspose.Imaging.Image.Load(Path.Combine(templatesFolder, @"template.wmf"))) { // Create an instance of GifOptions var exportOptions = new Aspose.Imaging.ImageOptions.GifOptions(); Aspose.Imaging.ImageOptions.VectorRasterizationOptions rasterizationOptions = new Aspose.Imaging.ImageOptions.WmfRasterizationOptions(); rasterizationOptions.PageWidth = image.Width; rasterizationOptions.PageHeight = image.Height; exportOptions.VectorRasterizationOptions = rasterizationOptions; // Save wmf to gif image.Save(Path.Combine(templatesFolder, "output.gif"), exportOptions); File.Delete(Path.Combine(templatesFolder, "output.gif")); }