mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Reset source memory stream
This commit is contained in:
parent
0e99dce23e
commit
0626fd2899
@ -260,11 +260,9 @@ public class ValidateLists : IVerb
|
||||
await using var imageStream = await _httpClient.GetStreamAsync(validatedList.Links.ImageUri, token);
|
||||
var ms = new MemoryStream();
|
||||
var hash = await imageStream.HashingCopy(ms, token);
|
||||
ms.Position = 0;
|
||||
|
||||
|
||||
|
||||
RelativePath smallImage, largeImage;
|
||||
ms.Position = 0;
|
||||
// Large Image
|
||||
{
|
||||
var standardWidth = 1152;
|
||||
@ -276,6 +274,7 @@ public class ValidateLists : IVerb
|
||||
await image.SaveAsync(largeImage.RelativeTo(reports).ToString(), cancellationToken: token);
|
||||
}
|
||||
|
||||
ms.Position = 0;
|
||||
// Small Image
|
||||
{
|
||||
var standardWidth = 466;
|
||||
|
Loading…
Reference in New Issue
Block a user