<commit_before>'use strict'

var debug = require('debug')('metalsmith-Imagemin')
var Imagemin = require('imagemin')
var async = require('async')
var path = require('path')

function minify (options, files, file, done) {
  if (!/\.gif|\.png|\.jpg|\.jpeg/.test(path.extname(file))) {
    debug('skipping none-image file: %s' + file)

    return done(null)
  }

  debug('compressing file: %s', file)

  var min = new Imagemin()
    .src(files[file].contents)
    .use(Imagemin.jpegtran(options))
    .use(Imagemin.gifsicle(options))
    .use(Imagemin.pngquant(options))
    .use(Imagemin.optipng(options))<commit_msg>Removes Imagemin.pngquant call<commit_after>'use strict'

var debug = require('debug')('metalsmith-Imagemin')
var Imagemin = require('imagemin')
var async = require('async')
var path = require('path')

function minify (options, files, file, done) {
  if (!/\.gif|\.png|\.jpg|\.jpeg/.test(path.extname(file))) {
    debug('skipping none-image file: %s' + file)

    return done(null)
  }

  debug('compressing file: %s', file)

  var min = new Imagemin()
    .src(files[file].contents)
    .use(Imagemin.jpegtran(options))
    .use(Imagemin.gifsicle(options))
    .use(Imagemin.optipng(options))
{'fraction_non_alphanumeric': 0.17798013245033112, 'fraction_numerical': 0.0, 'mean_word_length': 4.325991189427313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2300459', 'n_tokens_mistral': 445, 'n_tokens_neox': 430, 'n_words': 84}