mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
fix(server): video thumbnail colors when using webp (#10018)
use gbrpf32le
This commit is contained in:
@@ -392,7 +392,13 @@ export class ThumbnailConfig extends BaseConfig {
|
||||
}
|
||||
|
||||
getFilterOptions(videoStream: VideoStreamInfo): string[] {
|
||||
return ['fps=12', 'thumbnail=12', `select=gt(scene\\,0.1)+gt(n\\,20)`, ...super.getFilterOptions(videoStream)];
|
||||
const options = ['fps=12', 'thumbnail=12', `select=gt(scene\\,0.1)+gt(n\\,20)`];
|
||||
if (this.shouldScale(videoStream)) {
|
||||
options.push(`scale=${this.getScaling(videoStream)}`);
|
||||
}
|
||||
|
||||
options.push(...this.getToneMapping(videoStream), 'format=gbrpf32le');
|
||||
return options;
|
||||
}
|
||||
|
||||
getPresetOptions() {
|
||||
|
||||
Reference in New Issue
Block a user