I am looking for a c# extension or nuget package to convert an SVG to PNG file with high picture quality.


Consider using the DocumentConverter class from the Leadtools.Document.Sdk Nuget Package. You can use this class to take in your SVG as an input file and convert it to a number of supported Image and document formats, including PNG. (Disclaimer: I am an employee of this package’s vendor).

The C# code to use this would look like the following:

using (DocumentConverter documentConverter = new DocumentConverter())
   var format = RasterImageFormat.Png;
   var jobData = DocumentConverterJobs.CreateJobData(inFile, outFile, format);
   jobData.JobName = "SVG to PNG job";
   var job = documentConverter.Jobs.CreateJob(jobData);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.