From 41a32b4e6b75f7c7fa47c8346ca85cd80896fd3f Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Sat, 6 Jan 2024 18:58:04 -0500 Subject: [PATCH] feat(server): add rw2 support (#6231) --- server/Dockerfile | 4 ++-- server/src/domain/domain.constant.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index bf978d226f..9401e01063 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,5 +1,5 @@ # dev build -FROM ghcr.io/immich-app/base-server-dev:20231228@sha256:e631113b47c7e16a06ca47d3a99bdf269e831dfa4b94f6f4cc923781fa82c4e3 as dev +FROM ghcr.io/immich-app/base-server-dev:20240105@sha256:d88528d55ef13a5df37e141fdb3e00834a4a4673d1cfa243ac999cf87ed79eb6 as dev RUN apt-get install --no-install-recommends -yqq tini WORKDIR /usr/src/app @@ -34,7 +34,7 @@ RUN npm run build # prod build -FROM ghcr.io/immich-app/base-server-prod:20231228@sha256:e51e418d904124f368eca84b504414e40c5b55f9990be043d1749fdf5d1a045c +FROM ghcr.io/immich-app/base-server-prod:20240105@sha256:0472a2689e3d95a498bc0a424c63650cdad446c2959cc91cdf7771ee832ccadc WORKDIR /usr/src/app ENV NODE_ENV=production \ diff --git a/server/src/domain/domain.constant.ts b/server/src/domain/domain.constant.ts index 0eeb4666b4..7991d9da2a 100644 --- a/server/src/domain/domain.constant.ts +++ b/server/src/domain/domain.constant.ts @@ -115,6 +115,7 @@ const image: Record = { '.psd': ['image/psd', 'image/vnd.adobe.photoshop'], '.raf': ['image/raf', 'image/x-fuji-raf'], '.raw': ['image/raw', 'image/x-panasonic-raw'], + '.rw2': ['image/rw2', 'image/x-panasonic-rw2'], '.rwl': ['image/rwl', 'image/x-leica-rwl'], '.sr2': ['image/sr2', 'image/x-sony-sr2'], '.srf': ['image/srf', 'image/x-sony-srf'],