sample.zip (368.2 KB)
I’m trying to convert this ^ APNG image to GIF.
static void Main(string[] args)
{
string inputPath = @"C:\Concierge\sample.apng";
string outputPath = @"C:\Concierge\sample.gif";
using (Image apngImage = Image.Load(inputPath))
{
var saveOptions = new GifOptions()
{
};
apngImage.Save(outputPath, saveOptions);
}
if (File.Exists(outputPath))
{
System.Console.WriteLine("OK");
}
}
The conversion works but the transparency in the APNG isn’t preserved. How can I fix that?