From 9b0920d94346cb79cbe105ac3febbbda998f4dd7 Mon Sep 17 00:00:00 2001 From: trawzified <55751269+tr4wzified@users.noreply.github.com> Date: Sat, 26 Oct 2024 01:00:11 +0200 Subject: [PATCH] Rename compressed images on validation to a name that doesn't use the hash of the original image --- Wabbajack.CLI/Verbs/ValidateLists.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wabbajack.CLI/Verbs/ValidateLists.cs b/Wabbajack.CLI/Verbs/ValidateLists.cs index 76e58fcb1..0d1aff817 100644 --- a/Wabbajack.CLI/Verbs/ValidateLists.cs +++ b/Wabbajack.CLI/Verbs/ValidateLists.cs @@ -268,7 +268,7 @@ public async Task Run(AbsolutePath reports, AbsolutePath otherArchives) var height = standardWidth * image.Height / image.Width; image.Mutate(x => x .Resize(standardWidth, height)); - largeImage = validatedList.RepositoryName.ToRelativePath().Combine(hash.ToHex()+"_large").WithExtension(Ext.Webp); + largeImage = validatedList.RepositoryName.ToRelativePath().Combine(validatedList.Links.MachineURL + "_large").WithExtension(Ext.Webp); await image.SaveAsync(largeImage.RelativeTo(reports).ToString(), new WebpEncoder {Quality = 85}, cancellationToken: token); } @@ -280,7 +280,7 @@ public async Task Run(AbsolutePath reports, AbsolutePath otherArchives) var height = standardWidth * image.Height / image.Width; image.Mutate(x => x .Resize(standardWidth, height)); - smallImage = validatedList.RepositoryName.ToRelativePath().Combine(hash.ToHex()+"_small").WithExtension(Ext.Webp); + smallImage = validatedList.RepositoryName.ToRelativePath().Combine(validatedList.Links.MachineURL + "_small").WithExtension(Ext.Webp); await image.SaveAsync(smallImage.RelativeTo(reports).ToString(), new WebpEncoder {Quality = 75}, cancellationToken: token); }