Implemented MaxDownloadableUserImageSize config setting

This commit is contained in:
2025-11-02 22:35:06 +01:00
parent b7279e498f
commit 6d065de974
2 changed files with 6 additions and 1 deletions

View File

@@ -13,7 +13,6 @@ public static class ImageHelper
{
public static string ResizeAndConvertToBase64(byte[] imageBytes, int size = 32)
{
size = Math.Min(size, 256);
using var inputStream = new MemoryStream(imageBytes);
using var image = Image.Load(inputStream);