Skip to content

Commit 4546f6d

Browse files
committed
Adjust default image quality to 75
1 parent 89b8bcb commit 4546f6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api-reference/next/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default Home
4949
- `width` - The intrinsic width of the source image in pixels. Must be an integer without a unit. Required unless `unsized` is true.
5050
- `height` - The intrinsic height of the source image, in pixels. Must be an integer without a unit. Required unless `unsized` is true.
5151
- `sizes` - Defines what proportion of the screen you expect the image to take up. Recommended, as it helps serve the correct sized image to each device. [More info](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-sizes).
52-
- `quality` - The quality of the optimized image, an integer between 1 and 100 where 100 is the best quality. Default 100.
52+
- `quality` - The quality of the optimized image, an integer between 1 and 100 where 100 is the best quality. Default 75.
5353
- `loading` - The loading behavior. When `lazy`, defer loading the image until it reaches a calculated distance from the viewport. When `eager`, load the image immediately. Default `lazy`. [More info](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)
5454
- `priority` - When true, the image will be considered high priority and [preload](https://web.dev/preload-responsive-images/).
5555
- `unoptimized` - When true, the source image will be served as-is instead of resizing and changing quality.

packages/next/client/image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,6 @@ function defaultLoader({ root, src, width, quality }: LoaderProps): string {
443443
}
444444

445445
return `${root}?url=${encodeURIComponent(src)}&w=${width}&q=${
446-
quality || '100'
446+
quality || '75'
447447
}`
448448
}

0 commit comments

Comments
 (0)