feat(server): wide gamut thumbnails (#3658)

This commit is contained in:
Mert 2023-09-03 02:21:51 -04:00 committed by GitHub
parent 4bd77d5899
commit 2069293cc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 405 additions and 61 deletions

View file

@ -76,6 +76,8 @@ export enum SystemConfigKey {
THUMBNAIL_WEBP_SIZE = 'thumbnail.webpSize',
THUMBNAIL_JPEG_SIZE = 'thumbnail.jpegSize',
THUMBNAIL_QUALITY = 'thumbnail.quality',
THUMBNAIL_COLORSPACE = 'thumbnail.colorspace',
}
export enum TranscodePolicy {
@ -117,6 +119,11 @@ export enum CQMode {
ICQ = 'icq',
}
export enum Colorspace {
SRGB = 'srgb',
P3 = 'p3',
}
export interface SystemConfig {
ffmpeg: {
crf: number;
@ -179,5 +186,7 @@ export interface SystemConfig {
thumbnail: {
webpSize: number;
jpegSize: number;
quality: number;
colorspace: Colorspace;
};
}