{"size": 648, "ext": "js", "max_stars_repo_path": "gulp/tasks/development/images.js", "max_stars_repo_name": "scottzirkel/river-trail-supply-co", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gulp/tasks/development/images.js", "max_issues_repo_name": "scottzirkel/river-trail-supply-co", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulp/tasks/development/images.js", "max_forks_repo_name": "scottzirkel/river-trail-supply-co", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.0, "max_line_length": 47, "alphanum_fraction": 0.6095679012}
/*
Images
Optimize & move changed images
*/
var gulp      = require('gulp'),
    changed   = require('gulp-changed'),
    reload    = require('browser-sync').reload,
    imagemin  = require('gulp-imagemin'),
    pngquant  = require('imagemin-pngquant'),
    mozjpeg   = require('imagemin-mozjpeg'),
    config    = require('../../config').images;

gulp.task('images', function () {
  return gulp.src(config.src)
  .pipe(changed(config.dest))
  .pipe(imagemin({
    progressive: true,
    optimizationLevel: 7,
    use: [
      pngquant(),
      mozjpeg({quality: 60})
    ]
  }))
  .pipe(gulp.dest(config.dest))
  .pipe(reload({stream:true}));
});
