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 )