feat(server): separate quality for thumbnail and preview images (#13006)

* allow different thumbnail and preview quality, better config structure

* update web and api

* wording

* remove empty line?
This commit is contained in:
Mert
2024-09-28 02:01:04 -04:00
committed by GitHub
parent 4248594ac5
commit 995f0fda47
17 changed files with 369 additions and 198 deletions

View File

@@ -10,11 +10,14 @@ export interface CropOptions {
height: number;
}
export interface ThumbnailOptions {
size: number;
export interface ImageOutputConfig {
format: ImageFormat;
colorspace: string;
quality: number;
size: number;
}
export interface ThumbnailOptions extends ImageOutputConfig {
colorspace: string;
crop?: CropOptions;
processInvalidImages: boolean;
}