Skip to content

Commit

Permalink
Merge pull request #665 from assetgraph/depfu/update/npm/express-proc…
Browse files Browse the repository at this point in the history
…essimage-8.1.0

Upgrade express-processimage to version 8.1.0
  • Loading branch information
papandreou authored Mar 6, 2019
2 parents 1cee6b6 + 1ac9a12 commit fb7f35d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions lib/transforms/processImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,20 @@ module.exports = (queryObj, options) => {
) {
filters.push(new PngQuantWithHistogram());
}
if (
(options.pngcrush || autoLossless) &&
isAvailableByBinaryName.pngcrush &&
operationNames.indexOf('pngcrush') === -1
) {
filters.push(new PngCrush(['-rem', 'alla']));
}
if (
(options.optipng || autoLossless) &&
isAvailableByBinaryName.optipng &&
operationNames.indexOf('optipng') === -1
) {
filters.push(new OptiPng());
}
if (
(options.pngcrush || autoLossless) &&
isAvailableByBinaryName.pngcrush &&
operationNames.indexOf('pngcrush') === -1
) {
filters.push(new PngCrush(['-rem', 'alla']));
}
} else if (
targetContentType === 'image/jpeg' &&
isAvailableByBinaryName.jpegtran &&
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"chalk": "^2.3.2",
"esanimate": "^1.1.0",
"estraverse": "^4.2.0",
"express-processimage": "8.0.0",
"express-processimage": "8.1.0",
"extend": "^3.0.0",
"jpegtran": "^1.0.6",
"lodash": "^4.14.1",
Expand Down

0 comments on commit fb7f35d

Please sign in to comment.