diff --git a/API/Controllers/MangaController.cs b/API/Controllers/MangaController.cs
index 914bb5a..77625a7 100644
--- a/API/Controllers/MangaController.cs
+++ b/API/Controllers/MangaController.cs
@@ -115,6 +115,8 @@ public class MangaController(PgsqlContext context) : Controller
 
         if (width is { } w && height is { } h)
         {
+            if (width < 10 || height < 10 || width > 65535 || height > 65535)
+                return BadRequest();
             image.Mutate(i => i.ApplyProcessor(new ResizeProcessor(new ResizeOptions()
             {
                 Mode = ResizeMode.Max,