Set PNG bitdepth based on number of colours #2855

Removes use of deprecated libvips API
This commit is contained in:
Lovell Fuller
2021-08-26 22:05:29 +01:00
parent 4e84f743e4
commit 3402656ec5
5 changed files with 12 additions and 7 deletions

View File

@@ -232,7 +232,7 @@ const Sharp = function (input, options) {
pngAdaptiveFiltering: false,
pngPalette: false,
pngQuality: 100,
pngColours: 256,
pngBitdepth: 8,
pngDither: 1,
webpQuality: 80,
webpAlphaQuality: 100,