mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
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:
@@ -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,
|
||||
|
||||
@@ -148,8 +148,8 @@ function jpeg (options) {
|
||||
* Use these PNG options for output image.
|
||||
* @param {Object} [options]
|
||||
* @param {Boolean} [options.progressive=false] - use progressive (interlace) scan
|
||||
* @param {Number} [options.compressionLevel=6] - zlib compression level
|
||||
* @param {Boolean} [options.adaptiveFiltering=true] - use adaptive row filtering
|
||||
* @param {Number} [options.compressionLevel=9] - zlib compression level, 0-9
|
||||
* @param {Boolean} [options.adaptiveFiltering=false] - use adaptive row filtering
|
||||
* @param {Boolean} [options.force=true] - force PNG output, otherwise attempt to use input format
|
||||
* @returns {Sharp}
|
||||
* @throws {Error} Invalid options
|
||||
|
||||
Reference in New Issue
Block a user