Comments (4)
实际上我这里有一个不是很好的解决办法 ImagePickerMain.m getPictures 方法:
改变回掉的时机,可以避免得到缩略图。
CGSize size = CGSizeMake(self.width, self.height);
// 从asset中获得图片
[[PHImageManager defaultManager] requestImageForAsset:asset targetSize:size contentMode:PHImageContentModeDefault options:options resultHandler:^(UIImage * _Nullable result, NSDictionary * _Nullable info) {
//NSLog(@"图片名字:%@",fileName);
BOOL downloadFinined = ![[info objectForKey:PHImageCancelledKey] boolValue] && ![info objectForKey:PHImageErrorKey] && ![[info objectForKey:PHImageResultIsDegradedKey] boolValue];
if(downloadFinined){
NSString *sanboxPath = [self saveAndGetImageDocuments:result withName:fileName];
[pathsArr addObject: sanboxPath];
if([pathsArr count] != 0 && [pathsArr count] == [assets count]){
NSLog(@"%@",pathsArr);
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsArray:pathsArr];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
//清空选中状态
_selectedAssets = nil;
}
}
}];
}
如果有能里的话,可以尝试写原图拷贝完成的事件。我目前没有时间写这个,所以也无法承诺什么时间可以加上这个功能。
from cordova-plugin-imagepicker.
这块逻辑有点奇怪。明明获取到了photos,保存photos,然后返回就好了,最后又没有使用photos,然后又去使用assets了,重新在使用PHImageManager来获取。
我ios不是很熟,没有太搞懂什么意思
from cordova-plugin-imagepicker.
@songlipeng2003 可以去了解一下ios沙盒
from cordova-plugin-imagepicker.
This is the same issue as what I experience with the latest version of this plugin on iOS. The image quality if really bad, very pixelated and low resolution. I dont understand, how can I resolve this?
from cordova-plugin-imagepicker.
Related Issues (20)
- maximumImagesCount 为1的时候有问题
- 我想在capacitor上面使用这个,请问怎么使用? HOT 8
- ionic3中,限制一张图后,点击相机进行拍照后返回报错 HOT 1
- ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. HOT 2
- 能否迁移到安卓x HOT 1
- iphone 中文语言环境下,拍照和选择图片出现英文
- 子线程获取 vc
- Android手机中没有任何照片时无法显示第一个拍照按钮
- android-targetSdkVersion=29 the gallery doesn't work on devices with Android 10 HOT 3
- 在 Android 手机上没有弹出窗口来。 HOT 1
- 能否支持选择视频?
- Android 10 遇到兼容性问题,读取不到手机的相册图片 HOT 1
- 高版本android展示不出图片 HOT 1
- android10
- 查看单张图片的时候,右上角的完成按钮被遮挡 HOT 1
- Ionic How do you use it
- iPhone 11 压缩图片时间过长 compressed photos size HOT 6
- IOS13版本在点击完成完成按钮时闪退 HOT 9
- 小米手机选择相册时不显示图片的问题
- 使用方法 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-imagepicker.