Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(next/image): prefer sharp defaults, use mozjpeg for JPEG
- Default concurrency detection is better than os.cpus() as it inspects things like CPU set/affinity as well as the memory allocator. - Prevents use of archaic chroma subsampling for AVIF output. This should improve the quality of red/orange edges and slightly reduce file size as AV1 chroma-from-luma prediction works better. - There's no need to set sequentialRead as sharp now manages this for each input image and the operations in the pipeline. - Defaults JPEG output to use mozjpeg features such as trellis quantisation as these produce smaller file sizes. This should produce consistent output with squoosh at the same quality.
- Loading branch information