Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@spoonconsulting/cordova-plugin-spectrum
Advanced tools
Cordova plugin for Spectrum image compression library
Cordova plugin wrapper for Spectrum image compression library
Removal of Spectrum cordova-ios 7 will no longer support framework tag for pod installation and Spectrum sdk is no more maintained and will not provide support for its SDK to use framework. The compression logics have been replaced by native api for both platforms.
Supported Platforms
Installation
To install the plugin:
cordova plugin add cordova-plugin-spectrum --save
To uninstall this plugin:
cordova plugin rm cordova-plugin-spectrum
Methods
compressImage(config, success, error)
Compresses the image and overwrites by the new one. You need to ensure that the file is in writable path. The following properties are available:
Property | Comment |
---|---|
sourcePath | Path to the image |
maxSize | Resize the image to the specified size preserving aspect ratio (optional) |
Sample usage
SpectrumManager.compressImage({
sourcePath: path,
maxSize: 300
}, function () {
console.log('compressed image available at ', path);
}, function (err) {
console.err('could not compress image ',err)
})
Cordova-plugin-spectrum is licensed under the Apache v2 License.
Cordova-plugin-spectrum is brought to you by Spoon Consulting.
FAQs
Cordova plugin for Spectrum image compression library
The npm package @spoonconsulting/cordova-plugin-spectrum receives a total of 50 weekly downloads. As such, @spoonconsulting/cordova-plugin-spectrum popularity was classified as not popular.
We found that @spoonconsulting/cordova-plugin-spectrum demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.