mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-06 06:45:18 -04:00
CBL Import Polish 4 (#4576)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Kavita.Models.Entities.Enums;
|
||||
|
||||
namespace Kavita.Models.Extensions;
|
||||
|
||||
public static class PdfRenderResolutionExtensions
|
||||
{
|
||||
public static (int dim1, int dim2) GetDimensions(this PdfRenderResolution size)
|
||||
{
|
||||
return size switch
|
||||
{
|
||||
PdfRenderResolution.Default => (1080, 1920),
|
||||
PdfRenderResolution.High => (1920, 2560),
|
||||
PdfRenderResolution.Ultra => (2160, 3840),
|
||||
_ => (1080, 1920)
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user