All Projects β†’ 1000ch β†’ Gulp Image

1000ch / Gulp Image

Licence: mit
Optimize PNG, JPEG, GIF, SVG images with gulp task.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Image

Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (-5.63%)
Mutual labels:  image, gif, png, jpeg, optimization
Nuxt Optimized Images
πŸŒ…πŸš€ Automatically optimizes images used in Nuxt.js projects (JPEG, PNG, SVG, WebP and GIF).
Stars: ✭ 717 (+236.62%)
Mutual labels:  image, gif, jpeg, optimization
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (+257.75%)
Mutual labels:  image, gif, png, jpeg
Image Optimizer
Easily optimize images using PHP
Stars: ✭ 2,127 (+898.59%)
Mutual labels:  image, gif, png, jpeg
Lilliput
Resize images and animated GIFs in Go
Stars: ✭ 1,690 (+693.43%)
Mutual labels:  image, gif, png, jpeg
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (+267.14%)
Mutual labels:  image, gif, png, jpeg
Tiny Site
ε›Ύη‰‡δΌ˜εŒ–
Stars: ✭ 65 (-69.48%)
Mutual labels:  image, png, jpeg, optimization
Scrimage
Java, Scala and Kotlin image processing library
Stars: ✭ 792 (+271.83%)
Mutual labels:  image, gif, png, jpeg
Imaginary
Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
Stars: ✭ 4,107 (+1828.17%)
Mutual labels:  image, gif, png, jpeg
Sdwebimage
Asynchronous image downloader with cache support as a UIImageView category
Stars: ✭ 23,928 (+11133.8%)
Mutual labels:  image, gif, png, jpeg
Bbwebimage
A high performance Swift library for downloading, caching and editing web images asynchronously.
Stars: ✭ 128 (-39.91%)
Mutual labels:  image, gif, png, jpeg
Pyecharts Snapshot
renders the output of pyecharts as png, jpeg, gif, svg, eps, pdf and raw base64
Stars: ✭ 142 (-33.33%)
Mutual labels:  gif, png, jpeg
Bbmetalimage
A high performance Swift library for GPU-accelerated image/video processing based on Metal.
Stars: ✭ 677 (+217.84%)
Mutual labels:  image, png, jpeg
Doctron
Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel, add watermarks to pdf, convert pdf to images etc.
Stars: ✭ 141 (-33.8%)
Mutual labels:  image, png, jpeg
Libvips
A fast image processing library with low memory needs.
Stars: ✭ 6,094 (+2761.03%)
Mutual labels:  gif, png, jpeg
Image Optimizer
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
Stars: ✭ 785 (+268.54%)
Mutual labels:  image, gif, png
Format parser
file metadata parsing, done cheap
Stars: ✭ 46 (-78.4%)
Mutual labels:  gif, png, jpeg
Omxiv
OpenMax image viewer for the Raspberry Pi
Stars: ✭ 175 (-17.84%)
Mutual labels:  gif, png, jpeg
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (+815.49%)
Mutual labels:  gif, png, jpeg
Optimizt
CLI image optimization tool
Stars: ✭ 594 (+178.87%)
Mutual labels:  gif, png, jpeg

gulp-image GitHub Actions Status

Optimize PNG, JPEG, GIF, SVG images with gulp task.

gulp-image result

Install

$ npm install --save-dev gulp-image

External Dendencies

  • brew install libjpeg libpng on macOS
  • apt-get install -y libjpeg libpng on Ubuntu
  • npm install -g windows-build-tools on Windows

Usage

This is an example of gulpfile.js.

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

gulp.task('image', function () {
  gulp.src('./fixtures/*')
    .pipe(image())
    .pipe(gulp.dest('./dest'));
});

gulp.task('default', ['image']);

You can pass an object to image() as argument such as following:

gulp.task('image', () => {
  gulp.src('./fixtures/*')
    .pipe(image({
      pngquant: true,
      optipng: false,
      zopflipng: true,
      jpegRecompress: false,
      mozjpeg: true,
      gifsicle: true,
      svgo: true,
      concurrent: 10,
      quiet: true // defaults to false
    }))
    .pipe(gulp.dest('./dest'));
});

Set false for optimizers which you don't want to apply. And you can set concurrent option to limit the max concurrency in execution. You can also set quiet to avoid logging out results for every image processed.

You can configure parameters applied to each optimizers such as following:

gulp.task('image', () => {
  gulp.src('./fixtures/*')
    .pipe(image({
      optipng: ['-i 1', '-strip all', '-fix', '-o7', '-force'],
      pngquant: ['--speed=1', '--force', 256],
      zopflipng: ['-y', '--lossy_8bit', '--lossy_transparent'],
      jpegRecompress: ['--strip', '--quality', 'medium', '--min', 40, '--max', 80],
      mozjpeg: ['-optimize', '-progressive'],
      gifsicle: ['--optimize'],
      svgo: ['--enable', 'cleanupIDs', '--disable', 'convertColors']
    }))
    .pipe(gulp.dest('./dest'));
});

License

MIT Β© Shogo Sensui

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].