mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 06:32:44 +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',
|
failOn: options.processInvalidImages ? 'none' : 'error',
|
||||||
limitInputPixels: false,
|
limitInputPixels: false,
|
||||||
raw: options.raw,
|
raw: options.raw,
|
||||||
});
|
})
|
||||||
|
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
|
||||||
|
.withIccProfile(options.colorspace);
|
||||||
|
|
||||||
if (!options.raw) {
|
if (!options.raw) {
|
||||||
pipeline = pipeline
|
pipeline = pipeline.rotate();
|
||||||
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
|
|
||||||
.withIccProfile(options.colorspace)
|
|
||||||
.rotate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.crop) {
|
if (options.crop) {
|
||||||
|
|
Loading…
Reference in a new issue