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:
parent
355ed5be72
commit
8ee825964d
1 changed files with 4 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue