cordova-imagePicker
===================
Cordova Plugin For Multiple Image Selection - implemented for iOS and Android 4.0 and above.
## Installing the plugin
The plugin conforms to the Cordova plugin specification, it can be installed
using the Cordova / Phonegap command line interface.
phonegap plugin add https://github.com/wymsee/cordova-imagePicker.git
cordova plugin add https://github.com/wymsee/cordova-imagePicker.git
## Using the plugin
The plugin creates the object `window.imagePicker` with the method `getPictures(success, fail, options)`
Example - Get Full Size Images (all default options):
```javascript
window.imagePicker.getPictures(
function(results) {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results[i]);
}
}, function (error) {
console.log('Error: ' + error);
}
);
```
Example - Get at most 10 images scaled to width of 800:
```javascript
window.imagePicker.getPictures(
function(results) {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results[i]);
}
}, function (error) {
console.log('Error: ' + error);
}, {
maximumImagesCount: 10,
width: 800
}
);
```
### Options
options = {
// max images to be selected, defaults to 15. If this is set to 1, upon
// selection of a single image, the plugin will return it.
maximumImagesCount: int,
// max width and height to allow the images to be. Will keep aspect
// ratio no matter what. So if both are 800, the returned image
// will be at most 800 pixels wide and 800 pixels tall. If the width is
// 800 and height 0 the image will be 800 pixels wide if the source
// is at least that wide.
width: int,
height: int,
// quality of resized image, defaults to 100
quality: int (0-100)
};
### Note for Android Use
The plugin returns images that are stored in a temporary directory. These images will often not be deleted automatically though. The files should be moved or deleted after you get their filepaths in javascript.
## Libraries used
#### ELCImagePicker
For iOS this plugin uses the ELCImagePickerController, with slight modifications for the iOS image picker. ELCImagePicker uses the MIT License which can be found in the file LICENSE.
https://github.com/B-Sides/ELCImagePickerController
#### MultiImageChooser
For Android this plugin uses MultiImageChooser, with modifications. MultiImageChooser uses the BSD 2-Clause License which can be found in the file BSD_LICENSE. Some code inside MultImageChooser is licensed under the Apache license which can be found in the file APACHE_LICENSE.
https://github.com/derosa/MultiImageChooser
#### FakeR
Code(FakeR) was also taken from the phonegap BarCodeScanner plugin. This code uses the MIT license.
https://github.com/wildabeast/BarcodeScanner
## License
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
cordova-imagePicker-master.zip_zip
共59个文件
png:17个
xml:15个
h:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 143 浏览量
2022-09-19
21:45:24
上传
评论
收藏 95KB ZIP 举报
温馨提示
cordova-imagePicker-master.zip 可以多选照片图库文件
资源推荐
资源详情
资源评论
收起资源包目录
cordova-imagePicker-master.zip (59个子文件)
cordova-imagePicker-master
www
imagepicker.js 1KB
BSD_LICENSE 1KB
LICENSE 1KB
src
ios
ELCImagePicker
ELCImagePickerController.h 2KB
ELCAlbumPickerController.m 5KB
ELCAsset.m 866B
ELCAssetCell.h 227B
ELCAssetCell.m 4KB
Resources
Overlay.png 3KB
ELCAlbumPickerController.xib 17KB
ELCAssetPicker.xib 19KB
Overlay@2x.png 6KB
ELCAssetTablePicker.xib 19KB
ELCAlbumPickerController.h 741B
ELCAssetSelectionDelegate.h 390B
ELCAssetTablePicker.m 6KB
ELCAsset.h 560B
ELCAssetPickerFilterDelegate.h 287B
ELCAssetTablePicker.h 952B
ELCImagePickerController.m 3KB
SOSPicker.m 6KB
SOSPicker.h 656B
android
com
synconset
ImagePicker
FakeR.java 2KB
ImagePicker.java 2KB
Library
res
drawable-ldpi
icon.png 2KB
values-fr
multiimagechooser_strings_fr.xml 424B
values-es
multiimagechooser_strings_es.xml 399B
values-de
multiimagechooser_strings_de.xml 412B
drawable-hdpi
icon.png 4KB
image_bg.9.png 2KB
loading_icon.png 3KB
drawable-xhdpi
ic_launcher.png 5KB
ic_action_discard_light.png 684B
ic_action_done_dark.png 825B
ic_action_done_light.png 759B
ic_action_discard_dark.png 724B
drawable
grid_background.xml 414B
values-ja
multiimagechooser_strings_ja.xml 473B
values-ko
multiimagechooser_strings_ko.xml 443B
values
themes.xml 137B
multiimagechooser_strings_en.xml 491B
drawable-mdpi
ic_launcher.png 3KB
ic_action_discard_light.png 386B
ic_action_done_dark.png 454B
icon.png 3KB
ic_action_done_light.png 400B
ic_action_discard_dark.png 415B
values-hu
multiimagechooser_strings_hu.xml 441B
anim
image_pop_in.xml 387B
layout
actionbar_done_button.xml 1KB
multiselectorgrid.xml 846B
actionbar_custom_view_done_discard.xml 1KB
actionbar_discard_button.xml 1KB
src
MultiImageChooserActivity.java 25KB
ImageFetcher.java 13KB
.gitignore 215B
plugin.xml 6KB
README.md 4KB
APACHE_LICENSE 11KB
共 59 条
- 1
资源评论
御道御小黑
- 粉丝: 58
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于c++的个人收支管理系统设计
- docker一键安装包
- Screenshot_20240430_144340_com.ss.android.ugc.live.jpg
- 回到山沟沟.mp3
- 基于matlab实现自适应波束形成RLS及LMS算法仿真源程序1.rar
- 基于matlab实现自己编写的基于卡尔曼滤波的利用加速度传感器的计步器,测试数据是传感器放在腰部和手臂 .rar
- 基于matlab实现阵列信号处理,波束形成.rar
- 111111111111111111
- 基于matlab实现计步器编程;对当前的计步器装置的数值算法模拟 .rar
- Mdb学习查看PW;access;mdb;pw;password;patch
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功