diff --git a/Code/Magick/Dedupe.cs b/Code/Magick/Dedupe.cs index 33d90d3..c6edbc0 100644 --- a/Code/Magick/Dedupe.cs +++ b/Code/Magick/Dedupe.cs @@ -205,12 +205,12 @@ namespace Flowframes.Magick return bufferSize; } - public static async Task CreateDupesFile (string framesPath, int lastFrameNum) + public static async Task CreateDupesFile (string framesPath, int lastFrameNum, string ext) { string infoFile = Path.Combine(framesPath.GetParentDir(), "dupes.ini"); string fileContent = ""; - FileInfo[] frameFiles = IOUtils.GetFileInfosSorted(framesPath, false, "*.png"); + FileInfo[] frameFiles = IOUtils.GetFileInfosSorted(framesPath, false, $"*{ext}"); for(int i = 0; i < frameFiles.Length; i++) { diff --git a/Code/Main/Interpolate.cs b/Code/Main/Interpolate.cs index 8f1fa67..6a82aa4 100644 --- a/Code/Main/Interpolate.cs +++ b/Code/Main/Interpolate.cs @@ -181,7 +181,7 @@ namespace Flowframes public static async Task RunAi(string outpath, AI ai, bool stepByStep = false) { if (canceled) return; - await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount); + await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount, current.framesExt); await FrameRename.Rename(); await FrameOrder.CreateFrameOrderFile(current.framesFolder, Config.GetBool("enableLoop"), current.interpFactor);