Default PNG output to adaptiveFiltering=false, compressionLevel=9

PNG is mostly used for logos and line art, so these defaults will
produce the smallest files for most output most of the time.
This commit is contained in:
Lovell Fuller
2017-10-01 18:16:31 +01:00
parent 7b6c80327e
commit 99076edc89
5 changed files with 33 additions and 6 deletions

View File

@@ -186,8 +186,8 @@ const Sharp = function (input, options) {
jpegOvershootDeringing: false,
jpegOptimiseScans: false,
pngProgressive: false,
pngCompressionLevel: 6,
pngAdaptiveFiltering: true,
pngCompressionLevel: 9,
pngAdaptiveFiltering: false,
webpQuality: 80,
webpAlphaQuality: 100,
webpLossless: false,