git: 8965cc3decab - main - www/immich: Disable HDR tone mapping by default
Date: Sat, 19 Sep 2026 15:07:20 UTC
The branch main has been updated by joneum:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8965cc3decabef25af7f18773f944ca0db0b331e
commit 8965cc3decabef25af7f18773f944ca0db0b331e
Author: Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-19 15:06:39 +0000
Commit: Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-19 15:07:02 +0000
www/immich: Disable HDR tone mapping by default
Immich builds its filter chain around tonemapx, which ffmpeg does not
have, so an HDR video got no thumbnail at all.
Sponsored by: Netzkommune GmbH
---
www/immich/Makefile | 2 +-
www/immich/files/patch-server_src_dtos_config.dto.ts | 11 +++++++++++
www/immich/files/pkg-message.in | 7 +++++++
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/www/immich/Makefile b/www/immich/Makefile
index 3cb77d85ba08..d1630c355aec 100644
--- a/www/immich/Makefile
+++ b/www/immich/Makefile
@@ -1,7 +1,7 @@
PORTNAME= immich
DISTVERSIONPREFIX= v
DISTVERSION= 3.2.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= https://github.com/joneum/FreeBSD-Immich/releases/download/v${DISTVERSION}/:buildkit
DISTFILES= immich-freebsd-buildkit-${DISTVERSION}${EXTRACT_SUFX}:buildkit
diff --git a/www/immich/files/patch-server_src_dtos_config.dto.ts b/www/immich/files/patch-server_src_dtos_config.dto.ts
new file mode 100644
index 000000000000..608108fc1353
--- /dev/null
+++ b/www/immich/files/patch-server_src_dtos_config.dto.ts
@@ -0,0 +1,11 @@
+--- server/src/dtos/config.dto.ts.orig 2026-09-19 10:49:13 UTC
++++ server/src/dtos/config.dto.ts
+@@ -570,7 +570,7 @@ export const defaults = Object.freeze<SystemConfig>({
+ twoPass: false,
+ preferredHwDevice: 'auto',
+ transcode: TranscodePolicy.Required,
+- tonemap: ToneMapping.Hable,
++ tonemap: ToneMapping.Disabled,
+ accel: TranscodeHardwareAcceleration.Disabled,
+ accelDecode: true,
+ realtime: {
diff --git a/www/immich/files/pkg-message.in b/www/immich/files/pkg-message.in
index da31959c2b3c..4f7f59c48cf1 100644
--- a/www/immich/files/pkg-message.in
+++ b/www/immich/files/pkg-message.in
@@ -62,6 +62,13 @@ Running it:
import keeps the library readable without the database.
* Logs are rotated by newsyslog through
%%PREFIX%%/etc/newsyslog.conf.d/immich.conf.
+ * HDR tone mapping is off by default. Immich builds its filter chain
+ around the tonemapx filter, which ffmpeg does not have, so an HDR
+ video would get no thumbnail at all. The switch sits under
+ Administration > Settings > Video Transcoding. Turning it on needs
+ an ffmpeg that provides tonemapx, and its path belongs into
+ FFMPEG_PATH and FFPROBE_PATH in immich.env. Existing installations
+ keep whatever is stored in their database.
* Schema migrations run automatically on start, so take a backup
before a version upgrade; downgrades are not supported. After a
PostgreSQL major upgrade, rebuild pgvector and vchord. After a