Fix DownloadMangaCover, Implement Manga/Cover endpoint

This commit is contained in:
2025-03-07 14:07:59 +01:00
parent 4075adfe6b
commit c679d7c677
4 changed files with 24 additions and 129 deletions

View File

@ -106,7 +106,7 @@ public class MangaController(PgsqlContext context) : Controller
Image image = Image.Load(m.CoverFileNameInCache);
using MemoryStream ms = new();
image.Save(ms, new JpegEncoder(){Quality = 100});
return File(ms, "image/jpeg");
return File(ms.GetBuffer(), "image/jpeg");
}
/// <summary>