Gathering detailed insights and metrics for grunt-1-img
Gathering detailed insights and metrics for grunt-1-img
Gathering detailed insights and metrics for grunt-1-img
Gathering detailed insights and metrics for grunt-1-img
npm install grunt-1-img
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
470 Commits
1 Watchers
6 Branches
1 Contributors
Updated on Sep 29, 2016
Latest Version
0.3.0
Package Id
grunt-1-img@0.3.0
Size
655.71 kB
NPM Version
3.10.3
Node Version
6.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
grunt-img with upgraded dependencies for grunt 1.x and npm 3.x
Grunt task to optimize PNG and JPG images with optipng & jpegtran (jpegtran-turbo on win32).
First, be sure that you have optipng 0.7(or earlier) and jpegtran installed in your system.
You can install with homebrew
1brew install optipng jpeg
Debian, Ubuntu and Mint
1apt-get install optipng libjpeg libjpeg-progs
Both libraries are easy to find for RPM distributions too.
Don't worry because both libraries are included.
Install this task next to your project's grunt.js gruntfile with:
1npm install grunt-img
Then add the line bellow to your project's grunt.js
gruntfile:
1grunt.loadNpmTasks('grunt-img');
Questions? Take a look at this stream
Grunt provide a simple way to config its tasks, grunt-img follow the same principle:
1grunt.initConfig({
2 img: {
3
4 // using only dirs with output path
5 task1: {
6 src: 'public/src',
7 dest: 'public/img'
8 },
9
10 // recursive extension filter with output path
11 task2: {
12 src: ['public/src/**/*.png'],
13 dest: 'public/img'
14 },
15
16 // file by file with output path
17 task3: {
18 src: ['public/src/logo.png','public/src/social.jpg'],
19 dest: 'public/img'
20 },
21
22 // single path to optimize and replace all images
23 task4: {
24 src: 'public/img'
25 },
26
27 // file by file to optimize and replace
28 task5: {
29 src: ['public/img/concert.jpg, public/img/halestorm.png']
30 },
31
32 // filter extension to optimize and replace
33 task6: {
34 src: ['public/img/*.png']
35 }
36 }
37});
MIT License
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
binaries present in source code
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More