mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
chore(docs): mention uses for unoptimized (#73604)
Add docs for `unoptimized` use cases. - Closes https://github.com/vercel/next.js/issues/72140
This commit is contained in:
@@ -412,8 +412,9 @@ You can also [generate a solid color Data URL](https://png-pixel.com) to match t
|
||||
unoptimized = {false} // {false} | {true}
|
||||
```
|
||||
|
||||
When true, the source image will be served as-is instead of changing quality,
|
||||
size, or format. Defaults to `false`.
|
||||
When true, the source image will be served as-is from the `src` instead of changing quality, size, or format. Defaults to `false`.
|
||||
|
||||
This is useful for images that do not benefit from optimization such as small images (<1KB), vector images (SVG), or animated images (GIF).
|
||||
|
||||
```js
|
||||
import Image from 'next/image'
|
||||
|
||||
@@ -313,8 +313,9 @@ const Example = () => {
|
||||
|
||||
### unoptimized
|
||||
|
||||
When true, the source image will be served as-is instead of changing quality,
|
||||
size, or format. Defaults to `false`.
|
||||
When true, the source image will be served as-is from the `src` instead of changing quality, size, or format. Defaults to `false`.
|
||||
|
||||
This is useful for images that do not benefit from optimization such as small images (<1KB), vector images (SVG), or animated images (GIF).
|
||||
|
||||
```js
|
||||
import Image from 'next/image'
|
||||
|
||||
Reference in New Issue
Block a user