mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-13 14:57:53 +02:00
Manga Cover request retrieve sizing from query instead of body
This commit is contained in:
@ -1,13 +0,0 @@
|
||||
using SixLabors.ImageSharp;
|
||||
|
||||
namespace API.APIEndpointRecords;
|
||||
|
||||
public record CoverFormatRequestRecord(Size size)
|
||||
{
|
||||
public bool Validate()
|
||||
{
|
||||
if (size.Height <= 0 || size.Width <= 0 || size.Height > 65535 || size.Width > 65535) //JPEG max size
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user