DKImagePickerController icon indicating copy to clipboard operation
DKImagePickerController copied to clipboard

IPhone 6 fetch image from asset return nil

Open mouness2020 opened this issue 7 years ago • 3 comments

Hello, I have problem sometimes fetch image from asset return nil only in IPhone 6 , for example when fetch image from asset with layout.itemSize.toPixel() = 100 * 100 asset.fetchImageWithSize(layout.itemSize.toPixel(), completeBlock: { image, info in imageView.image = image }) it works fine , but fetch it with 750.0 * 1086.0 return nil , also fetch it using fetchFullScreenImage return nil, fetchOriginalImage return nil here is picker settings pickerController.assetGroupTypes = [ PHAssetCollectionSubtype.smartAlbumUserLibrary, PHAssetCollectionSubtype.smartAlbumFavorites, PHAssetCollectionSubtype.albumRegular ] pickerController.maxSelectableCount = 10 pickerController.assetType = .allPhotos pickerController.sourceType = .photo pickerController.showsEmptyAlbums = false pickerController.autoDownloadWhenAssetIsInCloud = false pickerController.showsCancelButton = true Tested device iphone 6 - ios 11.2.1 any suggestions?

cefbe788-9c8c-4e9b-a3b0-d0a1324af14c

mouness2020 avatar Jan 03 '18 18:01 mouness2020

any update on this @ferico55 .... I am getting similar issue sometimes it returns nil and sometimes it works...for bigger sized images it also sometimes take too much time to fetch images...

nikeshakya avatar May 21 '18 17:05 nikeshakya

set pickerController.autoDownloadWhenAssetIsInCloud = true fix the problem for me >> it seems bug in ios

mouness2020 avatar May 21 '18 19:05 mouness2020

Hello @nikeshakya . Did you get this error when images were in iCloud?

alexanderkhitev avatar Aug 27 '18 08:08 alexanderkhitev