File Dimension API (#1690)
* Implemented an api for getting file dimensions for a given chapter. This is for CDisplayEx integration. This might be usable in Double Renderer. * Added the cached filename for new API
This commit is contained in:
parent
0961cac65a
commit
e6b18457f2
12 changed files with 122 additions and 49 deletions
|
@ -1,4 +1,5 @@
|
|||
using API.Entities.Enums;
|
||||
using System.Collections.Generic;
|
||||
using API.Entities.Enums;
|
||||
|
||||
namespace API.DTOs.Reader;
|
||||
|
||||
|
|
13
API/DTOs/Reader/FileDimensionDto.cs
Normal file
13
API/DTOs/Reader/FileDimensionDto.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
namespace API.DTOs.Reader;
|
||||
|
||||
public class FileDimensionDto
|
||||
{
|
||||
public int Width { get; set; }
|
||||
public int Height { get; set; }
|
||||
public int PageNumber { get; set; }
|
||||
/// <summary>
|
||||
/// The filename of the cached file. If this was nested in a subfolder, the foldername will be appended with _
|
||||
/// </summary>
|
||||
/// <example>chapter01_page01.png</example>
|
||||
public string FileName { get; set; } = default!;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue