mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-14 07:17:54 +02:00
Fix DownloadMangaCover, Implement Manga/Cover endpoint
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user