1 Commits

Author SHA1 Message Date
f98429159f Fix incorrect dispose
Some checks failed
Build and Push Image / build-and-push (push) Has been cancelled
2025-07-23 16:22:09 -04:00

View File

@@ -125,9 +125,9 @@ public class ThumbnailService(IMongoDatabase db, AobaService aobaService)
Size = new Size(300, 300)
});
});
img.Value.Dispose();
var result = new MemoryStream();
await img.Value.SaveAsWebpAsync(result, cancellationToken);
img.Value.Dispose();
result.Position = 0;
return result;
}