-
Notifications
You must be signed in to change notification settings - Fork 27k
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
- Upgrades sharp to latest v0.33.4 - Use default concurrency detection instead of os.cpus() as it inspects things like CPU set/affinity as well as the memory allocator. - Prevents use of chroma subsampling for AVIF output, instead slightly reducing relative quality. This should improve the appearance of red/orange edges and reduce file size as AV1 chroma-from-luma prediction will work 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
Showing
8 changed files
with
51 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.