Skip to content

Commit

Permalink
Merge pull request #57 from mikaelbr/patch-1
Browse files Browse the repository at this point in the history
Adds note on using with next/image component
  • Loading branch information
arefaslani authored Oct 28, 2020
2 parents fae7397 + 9f5320f commit 43f55c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,15 @@ Typescript doesn't know how interpret imported images. `next-images` package con

+ /// <reference types="next-images" />
```

### With `next/image`

Base4/Data URL encoding is not supported when using the `next/image` component for image optimization. To deactivate inline images you can set the `inlineImageLimit` to `false`:

```js
// next.config.js
const withImages = require('next-images')
module.exports = withImages({
inlineImageLimit: false
})
```

0 comments on commit 43f55c0

Please sign in to comment.