Introduction
This post describes how to use LEADTOOLS (Windows or Linux) in .NET Core to convert almost any image to a PNG. This service can be used to display non-standard files in any modern web browser without installing plug-ins or third party code on the client.
Background
If you follow this tutorial, the resulting project demonstrates a quick and easy way to use 3rd party C API in .NET Core using DLLImport
. Specifically, this project uses LEADTOOLS DLL/SO C API in .NET Core to convert files to PNG. Native .NET Core support is not available now available in LEADTOOLS version 20. An updated blog post that uses NuGet packages has been published for version 20.