diff --git a/FMPhotoPicker/FMPhotoPicker/source/Data/FMPhotoAsset.swift b/FMPhotoPicker/FMPhotoPicker/source/Data/FMPhotoAsset.swift index 0a2486b..f427558 100644 --- a/FMPhotoPicker/FMPhotoPicker/source/Data/FMPhotoAsset.swift +++ b/FMPhotoPicker/FMPhotoPicker/source/Data/FMPhotoAsset.swift @@ -131,7 +131,7 @@ public class FMPhotoAsset { func requestFullSizePhoto(cropState: FMImageEditState, filterState: FMImageEditState, complete: @escaping (UIImage?) -> Void) { if let asset = asset { - self.fullSizePhotoRequestId = Helper.getFullSizePhoto(by: asset) { image in + self.fullSizePhotoRequestId = Helper.getPhoto(by: asset, in: CGSize(width: 2000, height: 2000)){ image in self.fullSizePhotoRequestId = nil if self.canceledFullSizeRequest { self.canceledFullSizeRequest = false diff --git a/FMPhotoPicker/FMPhotoPicker/source/Utilities/Helper.swift b/FMPhotoPicker/FMPhotoPicker/source/Utilities/Helper.swift index beabc3e..1f14b7f 100644 --- a/FMPhotoPicker/FMPhotoPicker/source/Utilities/Helper.swift +++ b/FMPhotoPicker/FMPhotoPicker/source/Utilities/Helper.swift @@ -130,7 +130,7 @@ class Helper: NSObject { let newSize = CGSize(width: desireSize.width, height: desireSize.height) - let pId = manager.requestImage(for: photoAsset, targetSize: newSize, contentMode: .aspectFill, options: options, resultHandler: { result, _ in + let pId = manager.requestImage(for: photoAsset, targetSize: newSize, contentMode: .aspectFit, options: options, resultHandler: { result, _ in complete(result) }) // manager.cancelImageRequest(pId)