1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 00:36:47 +01:00

fix(server): thumbnail colorspace handling (#13130)

fix colorspace handling
This commit is contained in:
Mert 2024-10-02 16:53:17 -04:00 committed by GitHub
parent 355ed5be72
commit 8ee825964d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,13 +79,12 @@ export class MediaRepository implements IMediaRepository {
failOn: options.processInvalidImages ? 'none' : 'error',
limitInputPixels: false,
raw: options.raw,
});
})
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
.withIccProfile(options.colorspace);
if (!options.raw) {
pipeline = pipeline
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
.withIccProfile(options.colorspace)
.rotate();
pipeline = pipeline.rotate();
}
if (options.crop) {