Skip to content

Commit e622e1a

Browse files
authored
feat: don't upscale images (#441)
* feat: don't upscale images * feat: add image to demo * chore: add image credit
1 parent 3138dcd commit e622e1a

File tree

5 files changed

+2759
-8287
lines changed

5 files changed

+2759
-8287
lines changed

Diff for: demo/pages/image.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import Image from 'next/image'
2+
import img from './unsplash.jpg'
3+
4+
const Images = () => (
5+
<div>
6+
<Image src={img} width={1200} height={800} alt="shiba inu dog looks through a window" />
7+
<p>
8+
<a href="https://unsplash.com/photos/DVCyb0lssMk">Photo</a> by{' '}
9+
<a href="https://unsplash.com/@veraduez?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">
10+
Vera Duez
11+
</a>{' '}
12+
on <a href="https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
13+
</p>
14+
</div>
15+
)
16+
17+
export default Images

Diff for: demo/pages/unsplash.jpg

28.7 KB
Loading

0 commit comments

Comments
 (0)