diff --git a/IEU.Core/IEU.cs b/IEU.Core/IEU.cs index 0b33387..7ec516e 100644 --- a/IEU.Core/IEU.cs +++ b/IEU.Core/IEU.cs @@ -893,13 +893,7 @@ async public Task Split(FileInfo[] inputFiles = null) ResetDoneCounter(); SetTotalCounter(inputFiles.Length); - ReportProgress(); - - if (CreateMemoryImage) - { - Image image = Image.Black(MaxTileResolutionWidth, MaxTileResolutionHeight); - image.WriteToFile($"{LrPath}{DirectorySeparator}([000])000)_memory_helper_image.png"); - } + ReportProgress(); await Task.Run(() => Parallel.ForEach(inputFiles, parallelOptions: new ParallelOptions() { MaxDegreeOfParallelism = maxConcurrency }, file => { @@ -1547,6 +1541,12 @@ async public Task Upscale(bool NoWindow = false, Profile HotProfile = null if (!directory.Exists) directory.Create(); + if (CreateMemoryImage) + { + Image image = Image.Black(MaxTileResolutionWidth, MaxTileResolutionHeight); + image.WriteToFile($"{LrPath}{DirectorySeparator}([000])000)_memory_helper_image.png"); + } + Process process; if (UseBasicSR) process = await BasicSR_Test(NoWindow, HotProfile);