From da590995ab2016a2e958783494941528d00ba1aa Mon Sep 17 00:00:00 2001 From: Brandon Wees Date: Mon, 26 Jan 2026 21:16:27 -0600 Subject: [PATCH] fix: use edited thumbs for widgets (#25550) * fix(server): enforce crop is the first action * chore: test * fix: use edited thumbs for widgets --------- Co-authored-by: Alex --- .../app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt | 2 +- mobile/ios/WidgetExtension/ImmichAPI.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt b/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt index 54ccb1ddfb..c55db8da93 100644 --- a/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt +++ b/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt @@ -101,7 +101,7 @@ class ImmichAPI(cfg: ServerConfig) { } suspend fun fetchImage(asset: Asset): Bitmap = withContext(Dispatchers.IO) { - val url = buildRequestURL("/assets/${asset.id}/thumbnail", listOf("size" to "preview")) + val url = buildRequestURL("/assets/${asset.id}/thumbnail", listOf("size" to "preview", "edited" to "true")) val connection = url.openConnection() val data = connection.getInputStream().readBytes() BitmapFactory.decodeByteArray(data, 0, data.size) diff --git a/mobile/ios/WidgetExtension/ImmichAPI.swift b/mobile/ios/WidgetExtension/ImmichAPI.swift index 19ff3d38ba..6ae2d502f8 100644 --- a/mobile/ios/WidgetExtension/ImmichAPI.swift +++ b/mobile/ios/WidgetExtension/ImmichAPI.swift @@ -225,7 +225,7 @@ class ImmichAPI { } func fetchImage(asset: Asset) async throws(FetchError) -> UIImage { - let thumbnailParams = [URLQueryItem(name: "size", value: "preview")] + let thumbnailParams = [URLQueryItem(name: "size", value: "preview"), URLQueryItem(name: "edited", value: "true")] let assetEndpoint = "/assets/" + asset.id + "/thumbnail" guard