Unverified Commit f8494b48 authored by Steven's avatar Steven Committed by GitHub

chore(docs): mention uses for `unoptimized` (#73604)

Add docs for `unoptimized` use cases.

- Closes https://github.com/vercel/next.js/issues/72140
parent 24615395
...@@ -412,8 +412,9 @@ You can also [generate a solid color Data URL](https://png-pixel.com) to match t ...@@ -412,8 +412,9 @@ You can also [generate a solid color Data URL](https://png-pixel.com) to match t
unoptimized = {false} // {false} | {true} unoptimized = {false} // {false} | {true}
``` ```
When true, the source image will be served as-is instead of changing quality, When true, the source image will be served as-is from the `src` instead of changing quality, size, or format. Defaults to `false`.
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 ```js
import Image from 'next/image' import Image from 'next/image'
......
...@@ -313,8 +313,9 @@ const Example = () => { ...@@ -313,8 +313,9 @@ const Example = () => {
### unoptimized ### unoptimized
When true, the source image will be served as-is instead of changing quality, When true, the source image will be served as-is from the `src` instead of changing quality, size, or format. Defaults to `false`.
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 ```js
import Image from 'next/image' import Image from 'next/image'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment