Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@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 65 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.