You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pass outputSettings or one of its keys directly to sharp's output functions, allowing for passthrough control of Sharp. This could also be specified through something like:
Since v1.5.0, PNG files that puppeteer-screenshot-tester generates are forced into indexed color (256 color limit).
This appears to be due to the use of
quality
on lines 117 and 147. As on the sharp PNG docs, settingquality
implicitly setspalette
totrue
.Incidentally, line 93 sets
compressionLevel
instead ofquality
and therefore the diff files are properly saved losslessly.Workarounds
lossless
ornearLossless
WebP output.Fixes
Switch lines 117 and 147 to set
compressionLevel
.Pass
outputSettings
or one of its keys directly to sharp's output functions, allowing for passthrough control of Sharp. This could also be specified through something like:The text was updated successfully, but these errors were encountered: