Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
53c2ae87
Unverified
Commit
53c2ae87
authored
Feb 08, 2023
by
Steven
Committed by
GitHub
Feb 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update `next/image` docs with unoptimized example (#45720)
parent
7654d7bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
image.md
docs/api-reference/next/image.md
+9
-1
image.md
docs/api-reference/next/legacy/image.md
+9
-1
No files found.
docs/api-reference/next/image.md
View file @
53c2ae87
...
@@ -269,7 +269,15 @@ You can also [generate a solid color Data URL](https://png-pixel.com) to match t
...
@@ -269,7 +269,15 @@ You can also [generate a solid color Data URL](https://png-pixel.com) to match t
When true, the source image will be served as-is instead of changing quality,
When true, the source image will be served as-is instead of changing quality,
size, or format. Defaults to
`false`
.
size, or format. Defaults to
`false`
.
This prop can be assigned to all images by updating
`next.config.js`
with the following configuration:
```
js
import
Image
from
'next/image'
const
UnoptimizedImage
=
(
props
)
=>
{
return
<
Image
{...
props
}
unoptimized
/>
}
```
Since Next.js 12.3.0, this prop can be assigned to all images by updating
`next.config.js`
with the following configuration:
```
js
```
js
module
.
exports
=
{
module
.
exports
=
{
...
...
docs/api-reference/next/legacy/image.md
View file @
53c2ae87
...
@@ -329,7 +329,15 @@ const Example = () => {
...
@@ -329,7 +329,15 @@ const Example = () => {
When true, the source image will be served as-is instead of changing quality,
When true, the source image will be served as-is instead of changing quality,
size, or format. Defaults to
`false`
.
size, or format. Defaults to
`false`
.
This prop can be assigned to all images by updating
`next.config.js`
with the following configuration:
```
js
import
Image
from
'next/image'
const
UnoptimizedImage
=
(
props
)
=>
{
return
<
Image
{...
props
}
unoptimized
/>
}
```
Since Next.js 12.3.0, this prop can be assigned to all images by updating
`next.config.js`
with the following configuration:
```
js
```
js
module
.
exports
=
{
module
.
exports
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment