
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@aftership/grunt-resize-crop
Advanced tools
Make images a specific size without distorting the aspect ratio. Resizes as close as possible and crops the rest.
Make images a specific size without distorting the aspect ratio. Resizes as close as possible and crops the rest.
This plugin is a wrapper for resize-crop
This plugin requires Grunt ~0.4.4
-- Learn to use Grunt
Install the plugin with this command:
npm install grunt-resize-crop --save-dev
Enable in your Gruntfile with:
grunt.loadNpmTasks('grunt-resize-crop');
In your project's Gruntfile, add a section named resize_crop
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
resize_crop: {
image_group: {
options: {
gravity: "center",
height: 200,
width: 200
},
files: [{
expand: true, // Enable dynamic expansion.
cwd: 'img/src', // Src matches are relative to this path.
src: ['**/*_[0-9].jpg'], // Actual pattern(s) to match.
dest: 'img/dist' // Destination path prefix.
}]
}
}
});
integer
integer
string
"center"
will try to keep the centermost part of the image and only remove the furthest edges.In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
FAQs
Make images a specific size without distorting the aspect ratio. Resizes as close as possible and crops the rest.
We found that @aftership/grunt-resize-crop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.