Closed Tor-sudo closed 2 months ago
WebP images are always 4:2:0 subsampled and there has never been a chromaSubsampling
option.
The smartSubsample
option tells the encoder to spend a bit more CPU time on the RGB to YUV conversion, which can improve colours around edges.
WebP images are always 4:2:0 subsampled and there has never been a
chromaSubsampling
option.The
smartSubsample
option tells the encoder to spend a bit more CPU time on the RGB to YUV conversion, which can improve colours around edges.
Ok. But can i use it for avif?
https://sharp.pixelplumbing.com/api-output#avif
Param | Type | Default | Description |
---|---|---|---|
[options.chromaSubsampling] | string |
"'4:4:4'" |
set to '4:2:0' to use chroma subsampling |
Should we now use
smartSubsample
instead ofchromaSubsampling
for webp images? IssmartSubsample:false
similar tochromaSubsampling: '4:2:0'
?