1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Plan to have multiple sizes in the future

This commit is contained in:
Chocobozzz 2024-05-31 09:02:34 +02:00
parent 3fbe849183
commit 1e3a5b25c3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 38 additions and 31 deletions

View file

@ -372,18 +372,7 @@ const CONFIG = {
GENERATION_FROM_VIDEO: {
FRAMES_TO_ANALYZE: config.get<number>('thumbnails.generation_from_video.frames_to_analyze')
},
SIZE: {
WIDTH: config.get<number>('thumbnails.size.width'),
HEIGHT: config.get<number>('thumbnails.size.height'),
MIN_WIDTH: config.get<number>('thumbnails.size.min_width'),
}
},
PREVIEWS: {
SIZE: {
WIDTH: config.get<number>('previews.size.width'),
HEIGHT: config.get<number>('previews.size.height'),
MIN_WIDTH: config.get<number>('previews.size.min_width'),
}
SIZES: config.get<{ width: number, height: number }[]>('thumbnails.sizes')
},
STATS: {
REGISTRATION_REQUESTS: {