Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update image documentation for static image #25949

Merged
merged 9 commits into from
Jun 15, 2021
Merged

Conversation

atcastle
Copy link
Collaborator

@atcastle atcastle commented Jun 9, 2021

Adds documentation for static image and blurry placeholder functionality

Adds documentation for static image and blurry placeholder functionality
Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


function Home() {
return (
<>
<h1>My Homepage</h1>
<Image
src="/me.png"
src={profilePic}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we show code examples of:

  • Static Image
  • Dynamic src (fetching from a CMS)
    • Manually adding blurDataURL example?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kodiakhq bot pushed a commit that referenced this pull request Jun 10, 2021
There are strict conditions for using `placeholder=blur` documented in #25949 but this will give the user a better understanding during `next dev` and links to the error.

- Error when `placeholder=blur` and no `blurDataURL`
- The Error for small images with `placeholder=blur` has been changed to a warning
- Added support for blurring a webp image
- Added error page linking to relevant docs
janicklas-ralph pushed a commit to janicklas-ralph/next.js that referenced this pull request Jun 11, 2021
There are strict conditions for using `placeholder=blur` documented in vercel#25949 but this will give the user a better understanding during `next dev` and links to the error.

- Error when `placeholder=blur` and no `blurDataURL`
- The Error for small images with `placeholder=blur` has been changed to a warning
- Added support for blurring a webp image
- Added error page linking to relevant docs
@ijjk ijjk requested a review from styfle June 15, 2021 14:33
ijjk
ijjk previously approved these changes Jun 15, 2021
styfle
styfle previously approved these changes Jun 15, 2021
@ijjk ijjk dismissed stale reviews from styfle and themself via 7cae558 June 15, 2021 14:38
@ijjk ijjk merged commit 8873374 into vercel:canary Jun 15, 2021
flybayer pushed a commit to blitz-js/next.js that referenced this pull request Jun 16, 2021
There are strict conditions for using `placeholder=blur` documented in vercel#25949 but this will give the user a better understanding during `next dev` and links to the error.

- Error when `placeholder=blur` and no `blurDataURL`
- The Error for small images with `placeholder=blur` has been changed to a warning
- Added support for blurring a webp image
- Added error page linking to relevant docs
flybayer pushed a commit to blitz-js/next.js that referenced this pull request Jun 16, 2021
* Update image documentation for static image

Adds documentation for static image and blurry placeholder functionality

* Update docs/api-reference/next/image.md

Co-authored-by: Steven <[email protected]>

* Update docs/api-reference/next/image.md

Co-authored-by: Steven <[email protected]>

* Update docs/api-reference/next/image.md

Co-authored-by: Steven <[email protected]>

* Update docs/api-reference/next/image.md

Co-authored-by: Steven <[email protected]>

* Version history and placeholder revisions

* Apply suggestions from code review

Co-authored-by: Steven <[email protected]>

* lint-fix

Co-authored-by: Steven <[email protected]>
Co-authored-by: JJ Kasper <[email protected]>
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants