Skip to content

A gulp plugin to compress png ang jpg images using TinyPNG API.

Notifications You must be signed in to change notification settings

Lirianna/gulp-tinypng-tinyjpg-Lirianna

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A fork from gulp-tinypng

Minify PNG and JPG using the tinypng API

Install

Install with npm

npm install --save-dev gulp-tinypng

Example

const gulp = require('gulp');
const tinypng = require('gulp-tinypng');

gulp.task('tinypng', function () {
	gulp.src(['src/**/*.jpg','src/**/*.png'])
		.pipe(tinypng('API_KEY'))
		.pipe(gulp.dest('compressed_images'));
});

API

Get your own free API-key at tinify.com.

tinypng(options)

License

This repository is originally licensed by: MIT © Gaurav Jassal

About

A gulp plugin to compress png ang jpg images using TinyPNG API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%