Compare commits

...

1 Commits

Author SHA1 Message Date
mertalev 4e730da137 set limits 2024-02-28 00:13:34 -05:00
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ FROM ghcr.io/immich-app/base-server-prod:20240227@sha256:d47f5f7f2b6c53957c63533
WORKDIR /usr/src/app
ENV NODE_ENV=production \
NVIDIA_DRIVER_CAPABILITIES=all \
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_VISIBLE_DEVICES=all \
MAGICK_DISK_LIMIT=0 \
MAGICK_MAP_LIMIT=0 \
MAGICK_AREA_LIMIT=500MP
COPY --from=prod /usr/src/app/node_modules ./node_modules
COPY --from=prod /usr/src/app/dist ./dist
COPY --from=prod /usr/src/app/bin ./bin
@@ -15,7 +15,7 @@ export class MediaRepository implements IMediaRepository {
private logger = new ImmichLogger(MediaRepository.name);
crop(input: string | Buffer, options: CropOptions): Promise<Buffer> {
return sharp(input, { failOn: 'none' })
return sharp(input, { failOn: 'none', limitInputPixels: 500_000_000 }) // 500MP
.pipelineColorspace('rgb16')
.extract({
left: options.left,