We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fusuma not work multiply selected image in gallery, button done not get images. Error is in method
private func requestImage(with asset: PHAsset, cropRect: CGRect, completion: @escaping (PHAsset, UIImage) -> Void) { DispatchQueue.global(qos: .default).async(execute: { let options = PHImageRequestOptions() options.deliveryMode = .highQualityFormat options.isNetworkAccessAllowed = true options.normalizedCropRect = cropRect options.resizeMode = .exact
let targetWidth = floor(CGFloat(asset.pixelWidth) * cropRect.width) let targetHeight = floor(CGFloat(asset.pixelHeight) * cropRect.height) let dimensionW = max(min(targetHeight, targetWidth), 1024 * UIScreen.main.scale) let dimensionH = dimensionW * self.getCropHeightRatio() let targetSize = CGSize(width: dimensionW, height: dimensionH) PHImageManager.default().requestImage(for: asset, targetSize: targetSize, contentMode: .aspectFill, options: options) { result, info in guard let result = result else { return } DispatchQueue.main.async(execute: { completion(asset, result) }) } }) }
The text was updated successfully, but these errors were encountered:
At IOS 13
Sorry, something went wrong.
the same issue for me!
same issue for me.
No branches or pull requests
Fusuma not work multiply selected image in gallery, button done not get images.
Error is in method
private func requestImage(with asset: PHAsset, cropRect: CGRect, completion: @escaping (PHAsset, UIImage) -> Void) {
DispatchQueue.global(qos: .default).async(execute: {
let options = PHImageRequestOptions()
options.deliveryMode = .highQualityFormat
options.isNetworkAccessAllowed = true
options.normalizedCropRect = cropRect
options.resizeMode = .exact
The text was updated successfully, but these errors were encountered: