Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@hugsmidjan/gulp-images
Advanced tools
npm install --save-dev @hugsmidjan/gulp-images
const [imagesCompress, imagesWatch] = require('@hugsmidjan/gulp-images')(opts);
const imagesTaskFactory = require('@hugsmidjan/gulp-images');
const options = {
// These are the defaults:
name: 'images', // the display name of the generated tasks
src: 'src/',
dist: 'pub/',
glob: ['i/**/*', '!i/_raw/**'], // which files to glob up as entry points
// svg_keepIds: false, // Treat all SVG `id=`s as significant content
};
// Create the gulp tasks based on the above options.
const imagesTasks = imagesTaskFactory(options);
// imagesTasks is a two item array...
const [imagesCompress, imagesWatch] = imagesTasks;
// ...but it also exposes the tasks as named properties.
const { compress, watch } = imagesTasks;
PNG and JPEG images can be forced through a lossy compression via a ---q{N}
file-name suffix. The suffix is stripped from the filename before saving in the dist
folder.
In SVG files all ID attributes are stripped away unless a svg_keepIds: true
option is passed, or if an individual SVG file has a ---ids
file-name suffix - which then gets stripped away before saving.
Examples:
src/i/photo---q60.jpg
(100% quality original) ---> dist/i/photo.png
(recompressed to approx. 60% quality)src/i/image---q50.png
(24bit file) ---> dist/i/image.png
(png8 with at least 50% quality)src/i/image---q50-70.png
(24bit file) ---> dist/i/image.png
(png8 with between 50% and 70% quality)src/i/image---q50--d0.png
(24bit file) ---> dist/i/image.png
(png8 with at least 50% quality - no dithering)src/i/image---ids.svg
(keep ID attributes) ---> dist/i/image.svg
(with ID attributes intact)0.1.3
2019-07-09
FAQs
Image minification gulp task
The npm package @hugsmidjan/gulp-images receives a total of 5 weekly downloads. As such, @hugsmidjan/gulp-images popularity was classified as not popular.
We found that @hugsmidjan/gulp-images demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.