Skip to content

Commit

Permalink
Update README.md (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
exiify authored Jul 4, 2024
1 parent d5d37ea commit 97e6d25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ npm i --save react-avatar-editor
pnpm add react-avatar-editor
```

## [Demo](https://react-avatar-editor.netlify.com/)
## [Demo](https://react-avatar-editor.netlify.app/)

![](https://thumbs.gfycat.com/FlawedBlushingGermanwirehairedpointer-size_restricted.gif)

Expand Down Expand Up @@ -90,7 +90,7 @@ The resulting image will have the same resolution as the original image, for tha
If you want the image sized in the dimensions of the canvas you can use `getImageScaledToCanvas`.

```javascript
import React from 'react'
import React, { useRef } from 'react'
import AvatarEditor from 'react-avatar-editor'

const MyEditor = () => {
Expand Down Expand Up @@ -169,7 +169,7 @@ _Note that:_ `getImage()` returns a canvas element and if you want to use it in

```js
const getImageUrl = async () => {
const dataUrl = editor.getImage().toDataURL()
const dataUrl = editor.current.getImage().toDataURL()
const res = await fetch(dataUrl)
const blob = await res.blob()

Expand Down

0 comments on commit 97e6d25

Please sign in to comment.