Skip to content

High performance self-hosted photo and video management solution.

fix: use edited thumbs for widgets (#25550)

Brandon Weesda590995ab20
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