From a5b2dcb3c2430fdc5b30fbfd72018333640c0110 Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 24 Oct 2026 12:21:17 +0300 Subject: [PATCH] Define the JPEG XL decode bound for the local Android image pipeline --- .../kotlin/app/alextran/immich/images/RemoteImagesImpl.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/android/app/src/main/kotlin/app/alextran/immich/images/RemoteImagesImpl.kt b/mobile/android/app/src/main/kotlin/app/alextran/immich/images/RemoteImagesImpl.kt index 91dd4f985..244d5d515 100644 --- a/mobile/android/app/src/main/kotlin/app/alextran/immich/images/RemoteImagesImpl.kt +++ b/mobile/android/app/src/main/kotlin/app/alextran/immich/images/RemoteImagesImpl.kt @@ -30,6 +30,8 @@ import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.Executors private const val MAX_PREALLOC_BYTES = 128 * 1024 * 1024 +// Match the upstream GPU texture bound without depending on a newer local image decoder. +private const val MAX_JXL_PIXEL_SIZE = 16384 private class RemoteRequest(val cancellationSignal: CancellationSignal) @@ -109,7 +111,7 @@ class RemoteImagesImpl(context: Context) : RemoteImageApi { buffer.offset, width?.toInt() ?: 0, height?.toInt() ?: 0, - MAX_PIXEL_SIZE, + MAX_JXL_PIXEL_SIZE, cancelled, info )