New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-log2c-image-picker

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-log2c-image-picker

Cordova Push Plugin,use Aliyun SDK

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-log2c-image-picker

图片选择 Plugin

  • Android: EasyPhotos
  • iOS:TZImagePickerController 3.0.9

Install

cordova plugin add cordova-plugin-log2c-image-picker

Usage

const options = {
    imageCount: 1,             // 最大选择图片数目,默认1
    isCamera: true,            // 是否允许用户在内部拍照,默认true
    isCrop: false,             // 是否允许裁剪,默认false, imageCount 为 1才生效
    compress: true,            // 是否压缩
    minimumCompressSize: 100,  // 小于100kb的图片不压缩
    quality: 90,               // 压缩质量
    enableBase64: true,       // 是否返回base64编码
};

// 直接调用拍照
ImagePicker.openCamera(options,successCallback,errorCallback);

// 调用图片选择
ImagePicker.showImagePicker(options,successCallback,errorCallback);

Keywords

FAQs

Package last updated on 27 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc