fix(mobile): load original image (#22142)

load original image
This commit is contained in:
Mert
2025-09-17 12:14:16 -04:00
committed by GitHub
parent 11e72a0f35
commit 20733bd7df
3 changed files with 21 additions and 6 deletions

View File

@@ -105,7 +105,7 @@ class ThumbnailApiImpl: ThumbnailApi {
var image: UIImage?
Self.imageManager.requestImage(
for: asset,
targetSize: CGSize(width: Double(width), height: Double(height)),
targetSize: width > 0 && height > 0 ? CGSize(width: Double(width), height: Double(height)) : PHImageManagerMaximumSize,
contentMode: .aspectFill,
options: Self.requestOptions,
resultHandler: { (_image, info) -> Void in