Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
grunt-image-normalize
Advanced tools
Readme
Normalize images to some predetermined height and width (https://github.com/dancingplatypus/grunt-imageNormalize).
Inside your grunt.js
file add a section named imageNormalize
. This section specifies images to normalize and the size of those images.
You will need to have GraphicsMagick installed and available in your path
object
This defines what files this task will process and should contain key:value pairs.
The key (destination) should be an unique filepath (supports grunt.template) and the value (source) should be a filepath or an array of filepaths (supports minimatch).
object
This controls how this task (and its helpers) operate and should contain key:value pairs, see options below.
integer
The height of the resulting image in pixels. If the aspect ratio does not match, it will be padded with a transparent background
integer
The width of the resulting image in pixels. If the aspect ratio does not match, it will be padded with a transparent background
boolean
If this is false, then any files found in the sources will be flattened. Files of the same name will clobber one another
string
The offset into the source directory to use when preserving directories
imageNormalize: {
target: {
options: {
height: 640,
width: 640,
preserveDirectories: true,
baseDirectory: "src"
},
src: [
"src/images/**/*.png": "
],
dest: "public/images"
}
}
FAQs
Grunt task to normalize images into a preset size
The npm package grunt-image-normalize receives a total of 1 weekly downloads. As such, grunt-image-normalize popularity was classified as not popular.
We found that grunt-image-normalize 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.